14.04.2012, 02:14
If my first cmd does not work try this
Код:
if (strcmp("/dgate", cmdtext, true, 10) == 0) { if(pInfo[playerid][pDonator] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not donator."); if(dGateOpened == 0) { F_MoveObject(dgate, -2864.9616699219, 460.51702880859, 4.5343232154846, 2.0); SendClientMessage(playerid, COLOR_GREEN, "Donator Gate: Opened."); dGateOpened = 1; } else { F_MoveObject(dgate, -2864.921875, 468.37530517578, 4.5343232154846, 2.0); SendClientMessage(playerid, COLOR_RED, "Donator Gate: Closed."); dGateOpened = 0; } return 1; }