29.03.2011, 05:38
(
Последний раз редактировалось Gamer_Z; 29.03.2011 в 09:47.
)
pawn Код:
public OnPlayerText(playerid,text[])
{
if(text[0] == '!')
{
text[0] = '/';
OnPlayerCommandText(playerid,text);
return 0;
}
//your onplayertext code
}
or:
pawn Код:
public OnPlayerText(playerid,text[])
{
if(text[0] == '!')
{
text[0] = '/';
CallLocalFunction("OnPlayerCommandText","is",playerid,text);
//or
// CallRemoteFunction("OnPlayerCommandText","is",playerid,text);
return 0;
}
//your onplayertext code
}