20.06.2015, 21:33
Hey guys, I have this:
then i am determinating the "Guard" into certain AddPlayerClasses, which are guarders skins:
And finally, in OnPlayerRequestClass i am checking it, and doing actions:
But.. the thing is that even if my pScore is 0 i can choose guarder class and also no message showes up, what can be the problem?
Thanks.
Код:
new Guard;
Код:
Guard = AddPlayerClass(163, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); Guard = AddPlayerClass(164, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
Код:
if(classid == Guard && PlayerInfo[playerid][pScore] < 5000) { SendClientMessage(playerid, COLOR_ORANGE, "[ Server ] You do not have enough points to play guarder!"); return 0; }
Thanks.