18.05.2012, 12:38
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/wizdoor", true))
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 321.10000610, -1188.59997559, 76.30000305))
{
MoveObject(Gate1a, 321.10000610, -1188.59997559, 76.30000305, 1);
SetTimer("CloseGate1AtoD", 10000, false);
}
else SendClientMessage(playerid, Error_Color, " You Are Not Near Wiz House.");
}
return 0; // it was 1, I changed it to 0 as it is a filterscript
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(.........)
{
// your command stuff here
return 1;
}
return 0; // OnPlayerCommandText should return 0 in filterscripts
}