warum geht das bei mir nicht
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(armycars); i++)
{
if(GetPlayerVehicleID(playerid)==armycars[i])
{
if(GetPVarInt(playerid,"Fraktion")!=1&&GetPVarInt(playerid,"Fraktion")!=2&&GetPVarInt(playerid,"Fraktion")!=3) RemovePlayerFromVehicle(playerid);
}
}
}
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(fbicars); i++)
{
if(GetPlayerVehicleID(playerid)==fbicars[i])
{
if(GetPVarInt(playerid,"Fraktion")!=1&&GetPVarInt(playerid,"Fraktion")!=2&&GetPVarInt(playerid,"Fraktion")!=3) RemovePlayerFromVehicle(playerid);
}
}
}
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(admincar); i++)
{
if(GetPlayerVehicleID(playerid)==admincar[i])
{
if(!IsPlayerAnAdmin(playerid,3)) RemovePlayerFromVehicle(playerid);
}
}
}
if(newstate==PLAYER_STATE_DRIVER)
{
for(new i=0; i<sizeof(vagoscars); i++)
{
if(GetPlayerVehicleID(playerid)==armycars[i])
{
if(GetPVarInt(playerid,"Fraktion")!=4) RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
bitte helft mir