12.03.2019, 20:29
You need to give us more info about how your VIP system is structured.
Assmuing you're using gTeam and saving player variables in an enum, i would do it in this way:
Assmuing you're using gTeam and saving player variables in an enum, i would do it in this way:
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(gTeam[playerid] == YOUR_TEAM_NAME && Player[playerid][Vip] == 0)
{
GameTextForPlayer(playerid, "~w~You must be ~r~a VIP member to choose this team!", 3000, 3);
return 0;
}
return 1;
}