Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2013
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. if(strcmp(cmdtext,"/supcar",true) == 0)
  2. {
  3. if(SpielerInfo[playerid][pAdmin] >= 1)
  4. {
  5. if(GetPVarInt(playerid, "SupCar") == 1)
  6. {
  7. SetPVarInt(playerid, "SupCar", 0);
  8. DestroyVehicle(Supcar[playerid]);
  9. return 1;
  10. }
  11. else
  12. {
  13. new Float:pX, Float:pY, Float:pZ, Float:FA;
  14. GetPlayerPos(playerid, pX, pY, pZ);
  15. GetPlayerFacingAngle(playerid, FA);
  16. SetPVarInt(playerid, "SupCar", 1);
  17. Supcar[playerid] = CreateVehicle(560, pX, pY, pZ, FA, 2, 2,-1);
  18. PutPlayerInVehicle(playerid, Supcar[playerid], 0);
  19. SendClientMessage(playerid, 0xFF00CDFF, "Supporter Fahrzeug gespawnt, zum löschen nochmal /supcar");
  20. Gas[Supcar[playerid]] = GetGasMax(Supcar[playerid]);
  21. return 1;
  22. }
  23. }
  24. return 1;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement