09.12.2017, 22:26
Код:
if(GetPVarInt(playerid, "inArena")) { new rand; rand = random(sizeof(Arenax1Spawns)); SetPlayerPos(playerid, Arenax1Spawns[rand][0], Arenax1Spawns[rand][1], Arenax1Spawns[rand][2]); SetPlayerFacingAngle(playerid, Arenax1Spawns[rand][3]); SetPlayerInterior(playerid, 10); SetPlayerVirtualWorld(playerid, 0); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 999); GivePlayerWeapon(playerid, 25, 999); GivePlayerWeapon(playerid, 31, 999); GivePlayerWeapon(playerid, 34, 999); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); SetPVarInt(playerid, "inArena", 1); ChatKill[playerid] = true; SendClientMessage(playerid, COLOR_GRAD1, "•• {FFFFFF}Bem vindo a Arena X1, caso quiser sair, use: /sairarena"); return 1; }
Se vocк tб fazendo um sistema de x1 com renascimento automбtico ou coisa assim, ponha isto na OnPlayerSpawn.