28.01.2015, 10:34
Add in your enum
Under aduty command
Under ofduty command
PHP код:
PosX,
PosY,
PosZ,
Health,
Armour,
Money,
//And the other add it according to your script i can guess :P
PHP код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
PlayerInfo[playerid][PosX] = x;
PlayerInfo[playerid][PosY] = y;
PlayerInfo[playerid][PosZ] = z;
new Float:health;
GetPlayerHealth(playerid, health);
PlayerInfo[playerid][Health] = health;
new Float:armour;
GetPlayerArmour(playerid, armour);
PlayerInfo[playerid][Armour] = armour;
PlayerInfo[playerid][Money] = GetPlayerMoney(playerid);
PHP код:
SetPlayerPos(playerid, PlayerInfo[playerid][PosX],PlayerInfo[playerid][PosY],PlayerInfo[playerid][PosZ]);
SetPlayerHealth(playerid, PlayerInfo[playerid][Health]);
SetPlayerArmour(playerid, PlayerInfo[playerid][Armour]);
GivePlayerMoney(playerid, PlayerInfo[playerid][Money]);

