Wie mache ich das die anderen zwei Autos auch nur für Admins sind.
auto1 = AddStaticVehicle(520,1154.0521,-2019.2418,69.7364,266.4518,0,0); //
AddStaticVehicle(425,1155.0242,-2053.1990,69.5784,271.1180,0,0); //
AddStaticVehicle(487,1194.9489,-2054.6589,69.1789,357.9435,0,0); //
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(GetPlayerVehicleID(playerid) == auto1)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"Willkomen in deinem Auto Rcon!");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_YELLOW,"[!] Nur für Rcons!");
}
}
}
return 1;
}