19.01.2012, 01:09
I'm thinking of a vehicle system designated by IDs, meaning the position of your boat is determined by your ID.
At the moment I have:
OnPlayerConnect I have:
Now, my question is, can I place the coordinates in an array, and load them like:
At the moment I have:
pawn Код:
new
g_BoatID = 0,
p_BoatID[MAX_PLAYERS char] = -1
;
pawn Код:
g_BoatID++;
pawn Код:
p_BoatID{playerid} = CreateVehicle(572, BoatPos[g_BoatIDX][playerid], BoatPos[BoatIDY][playerid], BoatPos[BoatIDZ][playerid], BoatPos[BoatA][playerid] ..);