unguru2009

Incearca asa..

Feb 26th, 2015
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 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. new exp = PlayerInfo[playerid][pExp];
  16. PlayerInfo[playerid][pExp] += PlayerInfo[playerid][pIapayday];
  17. format(coordsstring, sizeof(coordsstring), "{00FFCC}|-| %d Respect Points !\n", exp);
  18. strcat(string2,coordsstring);
  19. PlayerInfo[playerid][pIapayday] -= Iapayday
  20. format(coordsstring, sizeof(coordsstring), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
  21. strcat(string2,coordsstring);
  22. ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"PayDay",string2,"Close","");
  23. }
  24. else
  25. {
  26. new coordsstring[256];
  27. new string2[1000];
  28. format(string2, sizeof(string2), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n");
  29. format(coordsstring, sizeof(coordsstring), "{B2248F}Nu aveti nici un PayDay de ridicat !\n");
  30. strcat(string2,coordsstring);
  31. format(coordsstring, sizeof(coordsstring), "{7CA600}- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
  32. strcat(string2,coordsstring);
  33. ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"PayDay",string2,"Close","");
  34. }
  35.  
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment