08.03.2014, 22:27
new,
AdminX[MAX_PLAYERS],
AdminY[MAX_PLAYERS],
AdminZ[MAX_PLAYERS];
When they go on-duty:
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x, y, z);
AdminX[playerid] = x;
AdminY[playerid] = y;
AdminZ[playerid] = z;
When they go off-duty...
if(AdminX == 0.0000000) return 0;
SetPlayerPos(playerid, AdminX[playerid], AdminY[playerid], AdminZ[playerid]);
AdminX[MAX_PLAYERS],
AdminY[MAX_PLAYERS],
AdminZ[MAX_PLAYERS];
When they go on-duty:
new Float: x, Float: y, Float: z;
GetPlayerPos(playerid, x, y, z);
AdminX[playerid] = x;
AdminY[playerid] = y;
AdminZ[playerid] = z;
When they go off-duty...
if(AdminX == 0.0000000) return 0;
SetPlayerPos(playerid, AdminX[playerid], AdminY[playerid], AdminZ[playerid]);