if (strcmp, if it is an Admin
#3

Quote:
Originally Posted by ikarus❶❸❸❼
pawn Код:
if (strcmp("/heal", cmdtext, true, 10) == 0)
  {
if(IsPlayerAdmin(playerid)) // That means RCON Admin.
{
   SendClientMessage(playerid, COLOR_YELLOW, "You are succefully healed!");
        SetPlayerHealth(playerid, 100);
}
else
{

 SendClientMessage(playerid,COLOR_RED,"Sorry, you are not a Admin!");
}
return 1;
}
Thank you very very much, do you know how i can do /kick and then ID?
So if im an admin and i do /kick [Name/ID]...
And a /veh command to spawn a vehicle.. Thanks
Reply


Messages In This Thread
if (strcmp, if it is an Admin - by Ihsan_Cingisiz - 23.05.2010, 13:47
Re: if (strcmp, if it is an Admin - by [MWR]Blood - 23.05.2010, 13:49
Re: if (strcmp, if it is an Admin - by Ihsan_Cingisiz - 23.05.2010, 13:57

Forum Jump:


Users browsing this thread: 1 Guest(s)