Guest User

Untitled

a guest
Aug 17th, 2019
71
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(playerDB[playerid][bakelis]< 1)
  2. {
  3. SendClientMessage(playerid, RED, "* Neturite benzino bakelio, įsigyk pas mechaniką!");
  4. return 1;
  5. }
  6. if(!IsPlayerInAnyVehicle(playerid)){
  7. SendClientMessage(playerid,RED,"* Tu nesi mašinoje.");
  8. return 1;
  9. }
  10. if(vehicleDB[GetPlayerVehicleID(playerid)][gas]>100)
  11. {
  12. SendClientMessage(playerid,RED,"* Šioje mašinoje deglų daugiau netilps.");
  13. return 1;
  14. }
  15. if(IsPlayerInAnyVehicle(playerid))
  16. vehicleDB[GetPlayerVehicleID(playerid)][gas]+=20;
  17. SendClientMessage(playerid,GREEN,"* Užsipyliai 20l benzino.");
  18. playerDB[playerid][bakelis]-=1;
  19. return 1;
  20. }
RAW Paste Data