24.03.2012, 12:52
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
if(!IsPlayerInRangeOfPoint(playerid,COORDZ))
{
SendClientMessage(playerid,-1,"You are not at the COORDZ");
return 1;
}
if(PlayerInfo[playerid][pHourz] < 1)
{
SendClientMessage(playerid, COLOR-HERE, " Text here.");
return 1;
}
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "DIALOG Stuff here");
return 1;
}
return 0;
}