05.02.2009, 11:32
hi,
i got an gate but i want that only the cops and the one what turfed the cops place can open that gate and close does any know ?
that is the code ??
any know how to make that only them can open that gate ?
i know how to get the gate for cops but i want to know how to make the gate only for the turf what owned that place?
i got an gate but i want that only the cops and the one what turfed the cops place can open that gate and close does any know ?
Код:
if (strcmp(cmdtext, "/pdgatop", true)==0) { MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open SendClientMessage(playerid, COLOR_YELLOW,"Welcome to LSPD, Gate Open"); return 1; } if (strcmp(cmdtext, "/pdgatcl", true)==0) { MoveObject(PDGATE,1546.113769 , -1621.810913 , 5.644468,3.5);//open MoveObject(PDGATE,1546.113769 , -1621.810913 , 11.709331,3.5);//close SendClientMessage(playerid, COLOR_YELLOW,"Gate Close"); return 1; }
any know how to make that only them can open that gate ?
i know how to get the gate for cops but i want to know how to make the gate only for the turf what owned that place?