if (strcmp, if it is an Admin
#1

How can i do this?

Quote:

if (strcmp("/heal", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_YELLOW, "You are succefully healed!");
SetPlayerHealth(playerid, 100);

return SendClientMessage(playerid,COLOR_RED,"Sorry, you are not a Admin!");
}

I want to do this, but i forgot how i can make this only for admins..
So if a non-admin types /heal it says you aren ot a admin and if a
admin does this is must heal the player to 100 HP...

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)