22.05.2013, 19:57
I want to make this check (detect if player enters command):
I tried exactly the code above, gets compiled but has no effect.
pawn Код:
if(text[0]=='/')
if(text[0]=='/')
You can use strfind for that.
https://sampwiki.blast.hk/wiki/Strfind |
public OnPlayerCommandText(playerid, cmdtext[])
{
if (Jailed[playerid]==true) return SendClientMessage(playerid, 0xFF0000AA, "blabla");
return 0;
}