Need help.
#1

Hey, im making PREMIUM player system and i got little problem.
How i can make that if you are not premium player, you cant use some classes.



here is my code:


Код:
else if(classid >= 13 && classid <= 14)
	{
        GameTextForPlayer(playerid, "~b~Box~r~er ~w~/ Survivor [PREMIUM]", 3000, 3);
        if(PREMIUM[playerid] == 0) return GameTextForPlayer(playerid, "~w~ You are not ~r~Premium ~b~Player~w~!", 3000, 3);
		PlayerTeam[playerid] = 0;
		SetPlayerTeam(playerid,0);
	}
it fails now, where i must put
Код:
if(PREMIUM[playerid] == 0) return GameTextForPlayer(playerid, "~w~ You are not ~r~Premium ~b~Player~w~!", 3000, 3);
that it wont let player spawn.
Reply
#2

like this or?



Код:
else if(classid >= 13 && classid <= 14)
	{
        GameTextForPlayer(playerid, "~b~Box~r~er ~w~/ Survivor [PREMIUM]", 3000, 3);
        if(PREMIUM[playerid] == 0) return 0; GameTextForPlayer(playerid, "~w~ You are not ~r~Premium ~b~Player~w~!", 3000, 3);
		PlayerTeam[playerid] = 0;
		SetPlayerTeam(playerid,0);
	}
Reply
#3

but how i can make like...It shows to everyone gametextforplayer text, like Boxer / survivor

but when you press enter it says "You Are Not Premium Player" to players who have PREMIUM = 0
and if your PREMIUM = 1 and you press enter it just spawns you.

any idea how to make that?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)