19.08.2014, 19:33
How can I change this style to Zcmd style, if you can please help me.
pawn Код:
#include <a_samp>
new ArmyGate;
public OnFilterScriptInit()
{
ArmyGate = CreateObject(976, 2719.94775, -2409.93262, 12.45680, 0.00000, 0.00000, 90.00000, 100.0);
}
main()
{
print("\n----------------------------------");
print(" Gatetest Loaded");
print("----------------------------------\n");
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/open ag", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2719.94775, -2409.93262, 12.45680)){
MoveObject(ArmyGate, 2719.94775, -2401.17456, 12.45680, 3.0, 0.00000, 0.00000, 90.00000);
return 1;
}
}
else if(!strcmp(cmdtext, "/close ag", true)){
if(IsPlayerInRangeOfPoint(playerid, 15.0, 2719.94775, -2409.93262, 12.45680)){
MoveObject(ArmyGate, 2719.94775, -2409.93262, 12.45680, 3.0, 0.00000, 0.00000, 90.00000);
return 1;
}
}
return 0;
}
public OnFilterScriptExit()
{
return 1;
}


