22.02.2018, 06:05
I tried to make this command, but the problem is, It respawns the player not in the same position!
Код:
CMD:sync(playerid, params[]) { new Float:health, Float:armour; new Float:x, Float:y, Float:z; new weaponid; GetPlayerHealth(playerid, health); GetPlayerArmour(playerid, armour); SetPlayerArmour(playerid, armour); SetPlayerHealth(playerid, health); new playerskin = GetPlayerSkin(playerid); SetPlayerSkin(playerid, playerskin); weaponid = GetPlayerAmmo(playerid); new weapon = GetPlayerWeapon(playerid); SetSpawnInfo(playerid,0,playerskin,x,y,z,weaponid, weapon,weaponid,weapon,weaponid,weapon,weaponid); GetPlayerPos(playerid, x,y,z) && SetPlayerPos(playerid,x,y,z); return 1; }