Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Topo:
- new PlayerVehicle[MAX_PLAYERS];
- // Comando:
- if(strcmp(cmdtext, "/sultan", true) == 0)
- {
- if(!IsPlayerInAnyVehicle(playerid))
- {
- new Float:p_pos[4];
- GetPlayerPos(playerid, p_pos[0], p_pos[1], p_pos[2]);
- GetPlayerFacingAngle(playerid, p_pos[4]);
- PlayerVehicle[playerid] = CreateVehicle(560, p_pos[0], p_pos[1], p_pos[2], p_pos[3], p_pos[4], -1, -1, 600);
- PutPlayerInVehicle(playerid, PlayerVehicle[playerid], 1);
- }
- return true;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(vehicleid == PlayerVehicle[playerid])
- DestroyVehicle(PlayerVehicle[playerid]);
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement