Need help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help. (
/showthread.php?tid=233670)
Need help. -
Randomai - 02.03.2011
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.
Re: Need help. -
Randomai - 02.03.2011
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);
}
Re: Need help. -
Randomai - 02.03.2011
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?