Making Admin Name (+REP and REWARDS WHO CAN HELP ME)
#8

Add in your enum
PHP код:
PosX,
PosY,
PosZ,
Health,
Armour,
Money,
//And the other add it according to your script i can guess :P 
Under aduty command
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); 
Under ofduty command
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]); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)