29.06.2012, 06:25
This is the second script i Made today
the thing is script is loading in server log
but cant see the map . and when i type cmd i.e /opencb
its saying unknown cmd. and i dont see that map in server
here is the scripts
this is the second script
can someone helpme out and tell what is wrong with it ? and why itsnot loading ?
pls..
the thing is script is loading in server log
but cant see the map . and when i type cmd i.e /opencb
its saying unknown cmd. and i dont see that map in server
here is the scripts
PHP код:
#include <a_samp>
#if defined FILTERSCRIPT
#define 0xB4B5B7FF
new CargoBay;
public OnFilterScriptInit()
{
CargoBay = CreateObject(3113, 646.09997558594, 3168.3999023438, 1.0499999523163, 0, 0, 100);
return 1;
}
if (strcmp("/opencb", cmdtext, true,))
{
MoveObject(CargoBay,646.5, 3166.1999511719, 9, 1);//This will move the gate
SendClientMessage(playerid, 0xB4B5B7FF, "CargoBay is opening");
}
return 1;
}
if (strcmp("/closecb", cmdtext, true,))
{
MoveObject(CargoBay,646.09997558594, 3168.3999023438, 1.0499999523163, 1);//This will move the gate back to the old position
SendClientMessage(playerid, 0xB4B5B7FF, "CargoBay is Closing");
}
return 1;
}
#endif
PHP код:
#include <a_samp>
#if defined FILTERSCRIPT
#define 0xB4B5B7FF
new CarrierLift;
public OnFilterScriptInit()
{
CarrierLift = CreateObject(3115,644.59997559,3177.30004883,16.98640060,0.00000000,0.00000000,280.00000000);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/opencl", cmdtext, true, 10))
{
MoveObject(CarrierLift, 644.59960938,3177.29980469,9.85000038, 1);//This will move the gate
SendClientMessage(playerid, 0xB4B5B7FF, "Lift is going up");
}
return 1;
}
if (strcmp("/closecl", cmdtext, true,))
{
MoveObject(CarrierLift, 646.50000000,3166.19995117,9.00000000, 1);//This will move the gate back to the old position
SendClientMessage(playerid, 0xB4B5B7FF, "Lift is Going Down");
}
return 1;
}
return 0;
}
#endif
pls..