Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd,"/ridicapayday",true)==0)
- {
- if(IsPlayerConnected(playerid))
- {
- if(PlayerToPoint(3.0,playerid,1488.5713,-1771.1624,18.7958))
- {
- if (PlayerInfo[playerid][pIapayday] >= 1)
- {
- new coordsstring[256];
- new string2[1000];
- new Iapayday = PlayerInfo[playerid][pIapayday];
- format(string2, sizeof(string2), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
- format(coordsstring, sizeof(coordsstring), "{B2248F}Ai ridicat %d PayDay-uri si primesti :\n", Iapayday);
- strcat(string2,coordsstring);
- new exp = PlayerInfo[playerid][pExp];
- PlayerInfo[playerid][pExp] += PlayerInfo[playerid][pIapayday];
- format(coordsstring, sizeof(coordsstring), "{00FFCC}|-| %d Respect Points !\n", exp);
- strcat(string2,coordsstring);
- PlayerInfo[playerid][pIapayday] -= Iapayday
- format(coordsstring, sizeof(coordsstring), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
- strcat(string2,coordsstring);
- ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"PayDay",string2,"Close","");
- }
- else
- {
- new coordsstring[256];
- new string2[1000];
- format(string2, sizeof(string2), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
- format(coordsstring, sizeof(coordsstring), "{B2248F}Nu aveti nici un PayDay de ridicat !\n");
- strcat(string2,coordsstring);
- format(coordsstring, sizeof(coordsstring), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
- strcat(string2,coordsstring);
- ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"PayDay",string2,"Close","");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment