Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //no topo:
- new NRGFresh;
- //no OnGameModeInit:
- NRGFresh = CreateVehicle(522, 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, "[VGS]Fresh_AC", false) != 0
- GetPlayerVehicleID(playerid) == NRGFresh)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_RED, "Esta NRG-500 pertence ao [VGS]Fresh_AC.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment