Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //no topo:
- new veiculo;
- //no OnGameModeInit:
- veiculo = CreateVehicle(modelid, x, y, z, angle, cor1, cor2, 60000);
- //...:
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- new pname[24];
- GetPlayerName(playerid, pname, sizeof pname);
- if(newstate == PLAYER_STATE_DRIVER &&
- strcmp(pname, "Nome_do_Jogador", false) != 0
- GetPlayerVehicleID(playerid) == veiculo)
- {
- RemovePlayerFromVehicle(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment