27.07.2010, 09:18
How can i make Rhino, Hunter, Hydra, Seasparrow, Rustler only for admins?
I use Ladmin4v2...
plz help!
thx
I use Ladmin4v2...
plz help!
thx
// On top of your script:
new Matthias;
// In OnGameModeInit or OnFilterScriptInit
Matthias = AddStaticVehicle(451,1890.1632,1989.1708,13.4920,179.9223,6,6);
// Outside other functions
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle == Matthias)
{
if(strcmp(PlayerName,"Matthias",true))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33AA33AA, "I'm sorry, but this car has been reserved for Matthias");
}
}
}
return 1;
}