Advertisement
Guest User

Untitled

a guest
Sep 14th, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. if(strcmp(cmd,"/cacciadallamacchina",true)==0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. tmp = strtok(cmdtext, idx);
  6. giveplayerid = ReturnUser(tmp);
  7. if(!strlen(tmp))
  8. {
  9. SendClientMessage(playerid, COLOR_GRAD1, "USA: /cacciadallamacchina [playerid/PartOfName]");
  10. return 1;
  11. }
  12. if(IsPlayerConnected(giveplayerid))
  13. {
  14. if(giveplayerid != INVALID_PLAYER_ID)
  15. {
  16. if(ProetectorS(5.0, playerid, giveplayerid))
  17. {
  18. if(IsPlayerInAnyVehicle(giveplayerid))
  19. {
  20. GetPlayerName(playerid, sendername, sizeof(sendername));
  21. GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
  22. format(string, sizeof(string), "%*s è stato tolto dal tuo veicolo",sendername);
  23. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  24. format(string, sizeof(string), "Hai tolto dal veicolo %*s",giveplayer);
  25. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  26. RemovePlayerFromVehicle(giveplayerid);
  27. }
  28. else
  29. {
  30. SendClientMessage(playerid, COLOR_GREY, " Questo giocatore non è in macchina con te !");
  31. return 1;
  32. }
  33. }
  34. else
  35. {
  36. SendClientMessage(playerid, COLOR_GREY, " Questo giocatore non è vicino a te !");
  37. return 1;
  38. }
  39. }
  40. }
  41. }
  42. return 1;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement