Questions to nested if-else statements, how to realise that? Read..
#4

You can do it like this :
PHP код:
if(running !=&& IsPlayerInRangeOfPoint(playerid,10.0,beds[i][0],beds[i][1],beds[i][2]) && health && !IsPlayerInAnyVehicle(playerid)) // In this script we deal with players only
{
    
//insert the below two line in your code :
    
if((== &&  gPlayerTeamSelection[playerid] == TEAM_VIOLET) || (== &&  gPlayerTeamSelection[playerid] == TEAM_BROWN) || (== &&  gPlayerTeamSelection[playerid] == TEAM_YELLOW))
        return 
SendClientMessage(playerid, -1"You cannot blow your own team bed!"); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)