Quote:
Originally Posted by Undef1ned
Exact. Although if you want something like that, you can use "OnPlayerText".
PHP Code:
if(text[0] == '!command' && Player[playerid][Spawned] == 1)
{
//function....
return 0;
}
It is not recommended to fill the "OnPlayerText" callback with pure commands. It's just a suggestion that if you can do something with that callback.
|
You only need to check the first character:
http://forum.sa-mp.com/showpost.php?...&postcount=160