26.07.2011, 17:45
PHP код:
public OnRconCommand(cmd[])
{
if(!strcmp(cmd,"comando",true))
{
// Funзхes
}
return true;
}
PHP код:
public OnPlayerCommandText(playerid,cmdtext[])
{
if(!strcmp(cmdtext,"/comando",true))
{
if(!IsPlayerAdmin(playerid)) return true;
// Funзхes
}
return true;
}