Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1.  
  2. CMD:doplnitbaterii(playerid, params[]){
  3. new id;
  4. //staff podmínka
  5. if(sscanf(params, "u", id)) return Ussage(playerid, "/doplnitbaterii [id hráče]");
  6.  
  7. if(IsPlayerInAnyVehicle(id)){
  8. for(new v=0; v<sizeof(Vozidlo); v++){
  9. if(Vozidlo[v][id_x] == GetPlayerVehicleID(id)){
  10. Vozidlo[v][c_baterie] = 100;
  11. //Text že mu doplnil baterii
  12. }
  13. }
  14.  
  15. for(new f=0; f<sizeof(FVozidlo); f++){
  16. if(FVozidlo[f][fv_veh] == GetPlayerVehicleID(id)){
  17. FVozidlo[f][f_baterie] = 100;
  18. //Text že mu doplnil baterii
  19. }
  20. }
  21. } else {
  22. SCM(playerid, ORANGE, "~ Hráč není ve vozidle.");
  23. }
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement