12.06.2017, 14:32
Quote:
Code:
new bool:Death[MAX_PLAYERS]; public OnPlayerDeath(playerid, killerid, reason) { Death[playerid] = true; return true; } } |
PHP Code:
if(TaArena == 1)
{
Death[playerid] = true;
}
return 1;
comando de saida:
e o comando de saida ? ele vai ficar pra sempre na arena ... '-' se for utilizar:
o do dark:
PHP Code:
CMD:sair(playerid, params[])
{
if(!TaArena != 1) return SendClientMessage(playerid, -1, "{FF0000}Vocк nem esta na arena!");
SetPlayerInterior(playerid, 0); //0 = san andreas normal
SetPlayerPos(playerid, X, Y, Z); //X,Y,Z troque pelas coordenadas do local de saida
SendClientMessage(playerid, -1, "{FF0000}Vocк saiu da arena");
TaArena[playerid]=0;
return 1;
}
PHP Code:
CMD:sair(playerid, params[])
{
SetPlayerInterior(playerid, 0); //0 = san andreas normal
SetPlayerPos(playerid, X, Y, Z); //X,Y,Z troque pelas coordenadas do local de saida
SendClientMessage(playerid, -1, "{FF0000}Vocк saiu da arena");
Death[playerid] = false;
return 1;
}