17.03.2013, 21:50
#include <a_samp>
#define FILTERSCRIPT
new LSPDGate;
public OnFilterScriptInit()
{
LSPDGate = CreateObject(3055,1588.5000000,-1637.9000200,14.6000000,0.0000000,0.0000000,0.0000 000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/open", true)){
if(IsPlayerInRangeOfPoint(playerid, 15000.0,1588.5000000,-1637.9000200,14.6000000)){
MoveObject(LSPDGate,1588.5000000,-1637.9000200,19.4000000,2.0000000, 0.0, 0.0, 0.0);
return 1;
}
}
else if(strcmp(cmdtext, "/close", true)){
if(IsPlayerInRangeOfPoint(playerid, 15000.0,1588.5000000,-1637.9000200,14.6000000)){
MoveObject(LSPDGate,1588.5000000,-1637.9000200,14.6000000,2.0000000, 0.0, 0.0, 0.0);
return 1;
}
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
But can there be a problem with sscanf or...
#define FILTERSCRIPT
new LSPDGate;
public OnFilterScriptInit()
{
LSPDGate = CreateObject(3055,1588.5000000,-1637.9000200,14.6000000,0.0000000,0.0000000,0.0000 000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/open", true)){
if(IsPlayerInRangeOfPoint(playerid, 15000.0,1588.5000000,-1637.9000200,14.6000000)){
MoveObject(LSPDGate,1588.5000000,-1637.9000200,19.4000000,2.0000000, 0.0, 0.0, 0.0);
return 1;
}
}
else if(strcmp(cmdtext, "/close", true)){
if(IsPlayerInRangeOfPoint(playerid, 15000.0,1588.5000000,-1637.9000200,14.6000000)){
MoveObject(LSPDGate,1588.5000000,-1637.9000200,14.6000000,2.0000000, 0.0, 0.0, 0.0);
return 1;
}
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
But can there be a problem with sscanf or...