20.05.2009, 18:51
here is my pawno filterscript code : #include <a_samp>
new gate;
#define FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
gate = CreateObject(976,-1781.880,965.825,23.871,0.0,0.0,90.000);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerCommandText (playerid, cmdtext[])
{
if (strcmp(cmdtext, "/open", true) == 0)
{
MoveObject(gate, -1781.880,965.825,23.871);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome TO VIP BASE !");
return 1;
}
if (strcmp(cmdtext, "/close", true) == 0)
{
MoveObject(gate, -1781.880,965.825,23.871);
SendClientMessage(playerid, COLOR_YELLOW,"VIP BASE closed!");
return 1;
}
return 0;
}
But when i tipe /open or /close the gates doesnt openes or close
btw : i recieve 6 warning but no error ! So whats wrong ?
I tipe /open and i recieve the message but the gate doesnt openes ! What have i dont wrong
new gate;
#define FILTERSCRIPT
#define COLOR_YELLOW 0xFFFF00AA
public OnFilterScriptInit ()
{
gate = CreateObject(976,-1781.880,965.825,23.871,0.0,0.0,90.000);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerCommandText (playerid, cmdtext[])
{
if (strcmp(cmdtext, "/open", true) == 0)
{
MoveObject(gate, -1781.880,965.825,23.871);
SendClientMessage(playerid, COLOR_YELLOW,"Welcome TO VIP BASE !");
return 1;
}
if (strcmp(cmdtext, "/close", true) == 0)
{
MoveObject(gate, -1781.880,965.825,23.871);
SendClientMessage(playerid, COLOR_YELLOW,"VIP BASE closed!");
return 1;
}
return 0;
}
But when i tipe /open or /close the gates doesnt openes or close
btw : i recieve 6 warning but no error ! So whats wrong ?
I tipe /open and i recieve the message but the gate doesnt openes ! What have i dont wrong