27.09.2013, 19:02
Hello,The problem is that it opens but doesn't close. like when i type /opensfa7house ,it opens the door but when i type /closesfa7house ,nothing happens
please help me,
CodeIs:
#include <a_samp>
#define FILTERSCRIPT
new sfa7house;
public OnFilterScriptInit()
{
sfa7house = CreateObject(980, 249.21007, -1760.01697, 7.74010, 0.00000, 0.00000, 0.00000, 100.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/opensfa7house", true)){
MoveObject(sfa7house, 0, 0, 0, 3.0, 0.0, 0.0, 0.0);
return 1;
}
else if(strcmp(cmdtext, "/closesfa7house", true)){
MoveObject(sfa7house, 249.21007, -1760.01697, 7.74010, 0.00000, 0.00000, 0.00000, 100.0);
return 1;
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}
please help me,
CodeIs:
#include <a_samp>
#define FILTERSCRIPT
new sfa7house;
public OnFilterScriptInit()
{
sfa7house = CreateObject(980, 249.21007, -1760.01697, 7.74010, 0.00000, 0.00000, 0.00000, 100.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/opensfa7house", true)){
MoveObject(sfa7house, 0, 0, 0, 3.0, 0.0, 0.0, 0.0);
return 1;
}
else if(strcmp(cmdtext, "/closesfa7house", true)){
MoveObject(sfa7house, 249.21007, -1760.01697, 7.74010, 0.00000, 0.00000, 0.00000, 100.0);
return 1;
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}