Guest User

Untitled

a guest
Oct 7th, 2018
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. ocmd:pilot(playerid,params[])
  2. {
  3. new choosed[MAX_PLAYER_NAME];
  4. if(sscanf(params, "s", choosed))
  5. {
  6. SendClientMessage(playerid, -1, "|__________________ Pilot Options __________________|");
  7. SendClientMessage(playerid, -1, "Benutze: /pilot [name]");
  8. SendClientMessage(playerid, -1, "Commands: find, duty");
  9. SendClientMessage(playerid, -1, "|________________________________________________|");
  10. return 1;
  11. }
  12. if(strcmp(choosed,"duty",true) == 0)
  13. {
  14. for(new pv = 0; pv < sizeof(PilotVehs); pv++)
  15. {
  16. new newcar = GetPlayerVehicleID(playerid);
  17. if(newcar == PilotVehs[pv])
  18. {
  19. SendClientMessage(playerid,COLOR_RED,"Du hast EINE Schlüssel!");
  20. return 1;
  21. }
  22.  
  23. } // hier wäre halt der error wenn ich ELSE benutze
  24. SendClientMessage(playerid,COLOR_RED,"You are in no Pilot Vehicle!");
  25. return 1;
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment