01.04.2013, 15:38
I want to make a cmd that will toggle something I know it will use enums this is something what i tought:
I know the code is not right, I stopped with pawn for a while so bear with me
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/afk", cmdtext, true, 10) == 0)
{
If user = afk then
print("You are no longer AFK!")
Else
print("You are now afk!")
End if
return 1;
}
return 0;
}

