Advertisement
Shiny_

OnPlayerCommandReceived

Aug 24th, 2013
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.35 KB | None | 0 0
  1. public OnPlayerCommandReceived(playerid, cmdtext[]) {
  2.     str_del_free_space(cmdtext);
  3.     new car = -1;
  4.     if(GetVehicleModelIDByName(cmdtext) != -1) {
  5.         car = GetPlayerVehicleID(playerid);
  6.     }
  7.     if(car == -1) return SendClientMessage(playerid, -1, "Zła nazwa pojazdu.");
  8.     CreatePlayerVehicle(playerid, GetVehicleModelIDByName(cmdtext));
  9.     return false;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement