Advertisement
Shiny_

Untitled

Aug 3rd, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.59 KB | None | 0 0
  1.  
  2. public OnPlayerCommandPerformed(playerid, cmdtext[], success)
  3. {
  4.     for(new i = 0; i < sizeof(VehicleCmdNames); i++)
  5.     {
  6.         if(strfind(VehicleCmdNames[i], cmdtext) != -1)
  7.         {
  8.             new vid = SpawnVehicle_InfrontOfPlayer2(playerid, i+400, -1, -1);
  9.             LinkVehicleToInterior(vid, GetPlayerInterior(playerid));
  10.             SetVehicleVirtualWorld(vid, GetPlayerVirtualWorld(playerid));
  11.             new string2[64];
  12.             format(string2, sizeof(string2), "Tworzysz %s", VehicleCmdNames[i]);
  13.             SendClientMessage(playerid, -1, string2);
  14.             PutPlayerInVehicle(playerid, vid, 0);
  15.             return false;
  16.         }
  17.     }
  18.     return true;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement