Is this right? - 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: Is this right? (
/showthread.php?tid=115069)
Is this right? -
Puzi - 22.12.2009
Hello there, I would like to know whether this statement is correct. It does not work in game but it works in the script...
Код:
new pClass[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid) //Ten Public To Wybierałka Skina
{
if(pClass[playerid] == 16 || pClass[playerid] == 17 && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"Ten skin jest tylko dla adminуw RCON. Wybierz inny skin bądz zaloguj się jako admin!");
return 0;
}
Thanks and Regards
Puzi
Re: Is this right? -
[HiC]TheKiller - 22.12.2009
Is pClass[playerid] defined anywhere?
Something like this would work
pawn Код:
new pClass[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid) //Ten Public To Wybierałka Skina
{
pClass[playerid] = classid;
if(pClass[playerid] == 16 || pClass[playerid] == 17 && !IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,COLOR_YELLOW,"Ten skin jest tylko dla adminуw RCON. Wybierz inny skin bądz zaloguj się jako admin!");
return 0;
}