IsPlayerAdmin
#1

Hey there, one more question...

i have on my server so that people can choose their player colors.... here is one example of one;

Код:
}
if(listitem==4)
{
SetPlayerColor(playerid,COLOR_WHITE);
SendClientMessage(playerid,COLOR_WHITE,"This is your new colour.");
i was wondering how to make it so that i can have admin colors.... this is what i have so far..


Код:
}
if(listitem==5)
{
if(!IsPlayerAdmin(playerid))
SetPlayerColor(playerid,COLOR_KHAKI);
SendClientMessage(playerid,COLOR_WHITE,"This is your new Admin Color.");
{
else
}
SendClientMessage(playerid,COLOR_ORANGE,"You Are Not An Admin!");
can you please help me?


when i compile it i get this error

Код:
C:\Users\owner\Desktop\my samp server\my samp server - Copy\gamemodes\stunt.pwn(4286) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
thanks!
Reply


Messages In This Thread
IsPlayerAdmin - by Kevin_Joshen - 28.07.2010, 18:51
Re: IsPlayerAdmin - by selten98 - 28.07.2010, 18:55
Re: IsPlayerAdmin - by Kevin_Joshen - 28.07.2010, 19:22
Re: IsPlayerAdmin - by Kevin_Joshen - 28.07.2010, 19:34
Re: IsPlayerAdmin - by selten98 - 28.07.2010, 19:35
Re: IsPlayerAdmin - by Kevin_Joshen - 28.07.2010, 19:36

Forum Jump:


Users browsing this thread: 1 Guest(s)