Hi,
also wieso geht dieser befehl nicht, keine ERRORS !
aber auch wenn er in Fraktion 0 ist kann er einsteigen!
if( 12<= vehicleid <= 26 )
{
if(GetPVarInt(playerid,"Fraktion")==0)
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER )
{
SendClientMessage(playerid,ROT,"Du bist kein Teil der Müllabfuhr!");
RemovePlayerFromVehicle(playerid);
}
}
if(GetPVarInt(playerid,"Fraktion")==1)
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER )
{
SendClientMessage(playerid,ROT,"Du bist kein Teil der Müllabfuhr!");
RemovePlayerFromVehicle(playerid);
}
}
if(GetPVarInt(playerid,"Fraktion")==2)
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER )
{
SendClientMessage(playerid,ROT,"Du bist kein Teil der Müllabfuhr!");
RemovePlayerFromVehicle(playerid);
}
}
if(GetPVarInt(playerid,"Fraktion")==3)
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER )
{
SendClientMessage(playerid,ROT,"Du bist kein Teil der Müllabfuhr!");
RemovePlayerFromVehicle(playerid);
}
}
if(GetPVarInt(playerid,"Fraktion")==5)
{
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER )
{
SendClientMessage(playerid,ROT,"Du bist kein Teil der Müllabfuhr!");
RemovePlayerFromVehicle(playerid);
}
}
}