TonyVk

Untitled

Sep 5th, 2015
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. YCMD:pretresigepek(playerid,params[], help)
  2. {
  3. if(IgracPolicajac(playerid))
  4. {
  5. new i = GetClosestVehicle(playerid);
  6. for(new v; v < sizeof(VoziloInfo); v++)
  7. {
  8. if(VoziloInfo[v][vID] == i)
  9. {
  10. new metci = VoziloInfo[v][vMunicija];
  11. new droga = VoziloInfo[v][vDroga];
  12. new matsi = VoziloInfo[v][vMats];
  13. new string[128];
  14. format(string,sizeof(string),"Metaka: %d",metci);
  15. SCM(playerid,GRAD2,string);
  16. format(string,sizeof(string),"Droge: %d grama",droga);
  17. SCM(playerid,GRAD2,string);
  18. format(string,sizeof(string),"Matsa: %d",matsi);
  19. SCM(playerid,GRAD2,string);
  20. }
  21. }
  22. }else return SCM(playerid,GRAD2,"Vi niste policajac!");
  23. return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment