/entrar if(PlayerToPoint(2,playerid,2782.6218,-1814.3276,11.8438)) { GameTextForPlayer(playerid, "~y~ ARENA X1", 5000, 1); // nome SetPlayerInterior(playerid, 10); //seta player int SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875); //coordenada SetPlayerFacingAngle(playerid,355.8837); SetCameraBehindPlayer(playerid); SavArmasLocais(playerid); // Retira as armas assim que entra. SetPlayerHealth(playerid, 100); //seta vida SetPlayerArmour(playerid,100); //seta colete GivePlayerWeapon(playerid,24,999); //seta arma 24 GivePlayerWeapon(playerid,25,999); //seta arma 25 GivePlayerWeapon(playerid,31,999); //seta arma 31 GivePlayerWeapon(playerid,29,999); //seta arma 29 GivePlayerWeapon(playerid,34,999); //seta arma 34 EmpDinheiro(playerid, 28); // quanto perde ao entrar }
new TanoX1[MAX_PLAYERS];
/entrar
if(PlayerToPoint(2,playerid,2782.6218,-1814.3276,11.8438))
{
GameTextForPlayer(playerid, "~y~ ARENA X1", 5000, 1); // nome
SetPlayerInterior(playerid, 10); //seta player int
SetPlayerPos(playerid,-975.975708,1060.983032,1345.671875); //coordenada
SetPlayerFacingAngle(playerid,355.8837);
SetCameraBehindPlayer(playerid);
SavArmasLocais(playerid); // Retira as armas assim que entra.
SetPlayerHealth(playerid, 100); //seta vida
SetPlayerArmour(playerid,100); //seta colete
GivePlayerWeapon(playerid,24,999); //seta arma 24
GivePlayerWeapon(playerid,25,999); //seta arma 25
GivePlayerWeapon(playerid,31,999); //seta arma 31
GivePlayerWeapon(playerid,29,999); //seta arma 29
GivePlayerWeapon(playerid,34,999); //seta arma 34
EmpDinheiro(playerid, 28); // quanto perde ao entrar
TanoX1[playerid] = 1;
}
if(TanoX1[playerid] == 1){
SendClientMessage(playerid, -1, "Vocк nasceu na arena x1");
SetPlayerPos(playerid, X, Y, Z);
return 1;
}
TanoX1[playerid] = 0;
Acho que se vocк criar uma variбvel
PHP код:
PHP код:
PHP код:
PHP код:
|