07.08.2011, 23:41
I stopped using strcmp for commands a while back but try this:
And you said you want people with wanted levels higher than 1 to use it?
pawn Код:
if (strcmp("heal", cmdtext, true, 10) == 0)
{
if(GetPlayerWantedLevel(playerid) == 1)
{
SetPlayerHealth(playerid, 100);
}
else
{
SendClientMessage(playerid, 0xFFAE1CFF, "Your wanted level has to be 1 to be able to use this cmd");
}
Код:
== means equal to > means more than < means less than >= means more than or equal to <= means less than or equal to