Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandPerformed(playerid, cmdtext[], success)
- {
- for(new i = 0; i < sizeof(VehicleCmdNames); i++)
- {
- if(strfind(VehicleCmdNames[i], cmdtext) != -1)
- {
- new vid = SpawnVehicle_InfrontOfPlayer2(playerid, i+400, -1, -1);
- LinkVehicleToInterior(vid, GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(vid, GetPlayerVirtualWorld(playerid));
- new string2[64];
- format(string2, sizeof(string2), "Tworzysz %s", VehicleCmdNames[i]);
- SendClientMessage(playerid, -1, string2);
- PutPlayerInVehicle(playerid, vid, 0);
- return false;
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement