16.05.2010, 16:25
Код:
new portaaaaopc; forward portaaaaaaopc();
Код:
portaaaaopc = CreateObject(971, 937.88873291016, -1014.8251953125, 34.718353271484, 0.000000, 0.000000, 179.36492919922);
Код:
if(strcmp(cmd, "/apc", true) == 0)
{
if ((IsACop(playerid)) && PlayerToPoint(15.0, playerid, 938.9279,-1005.4316,34.6513)) { //GateGaragem
MoveObject( portaaaaopc, 937.888671875, -1014.8251953125, 27.218353271484,5);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s Abriu Este Portao!", sendername);
ProxDetector(4.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid, "~g~Aberto", 5000, 3);
SetTimer("portaaaaaaopc", 5000, false);
} else {
//SendClientMessage(playerid, COLOR_RED, "*** Voce nao esta perto do portao ou nao e do B.O.P.E ***");
}
return 1;
}
Код:
public portaaaaaaopc();
{
MoveObject(portaaaaopc, 937.888671875, -1014.8251953125, 27.218353271484,5);
return 1;
}

