/sync
#1

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;
}
Reply


Messages In This Thread
/sync - by ivndosos - 22.02.2018, 06:05
Re: /sync - by andrejc999 - 22.02.2018, 06:17
Re: /sync - by ivndosos - 22.02.2018, 06:21
Re: /sync - by Sew_Sumi - 22.02.2018, 06:48
Re: /sync - by ivndosos - 22.02.2018, 06:58
Re: /sync - by Sew_Sumi - 22.02.2018, 07:02
Re: /sync - by ivndosos - 22.02.2018, 07:03
Re: /sync - by Sew_Sumi - 22.02.2018, 07:10
Re: /sync - by ivndosos - 22.02.2018, 07:26
Re: /sync - by Sew_Sumi - 22.02.2018, 08:05

Forum Jump:


Users browsing this thread: 2 Guest(s)