16.05.2011, 07:30
Oh, didn't see, you also have two opening braces at every command.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/aptopen", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,1801.08056641,-1279.14318848,7.70273018))
{
MoveObject(gateopen,1801.08056641,-1279.14318848,7.70273018,1.5);
}
return 1;
}
if(strcmp(cmdtext, "/aptclose", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,1801.08056641,-1279.14318848,7.70273018))
{
MoveObject(gateopen,1801.08056641,-1279.14318848,14.95273018,1.5);
}
return 1;
}
return 0;
}