unguru2009

Ridica payday.

Feb 26th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. if(strcmp(cmd,"/ridicapayday",true)==0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if(PlayerToPoint(3.0,playerid,1488.5713,-1771.1624,18.7958))
  6. {
  7. if (PlayerInfo[playerid][pIapayday] >= 1)
  8. {
  9. new coordsstring[256];
  10. new string2[1000];
  11. new Iapayday = PlayerInfo[playerid][pIapayday];
  12. format(string2, sizeof(string2), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
  13. format(coordsstring, sizeof(coordsstring), "{B2248F}Ai ridicat %d PayDay-uri si primesti :\n", Iapayday);
  14. strcat(string2,coordsstring);
  15. format(coordsstring, sizeof(coordsstring), "{00FFCC}|-| %d Respect Points !\n", Iapayday);
  16. strcat(string2,coordsstring);
  17. PlayerInfo[playerid][pIapayday] -= Iapayday
  18. format(coordsstring, sizeof(coordsstring), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
  19. strcat(string2,coordsstring);
  20. ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"PayDay",string2,"Close","");
  21. }
  22. else
  23. {
  24. new coordsstring[256];
  25. new string2[1000];
  26. format(string2, sizeof(string2), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
  27. format(coordsstring, sizeof(coordsstring), "{B2248F}Nu aveti nici un PayDay de ridicat !\n");
  28. strcat(string2,coordsstring);
  29. format(coordsstring, sizeof(coordsstring), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
  30. strcat(string2,coordsstring);
  31. ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"PayDay",string2,"Close","");
  32. }
  33.  
  34. }
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment