[Ajuda] Retirar arma
#2

nгo sei seta certo mais tente

pawn Код:
public OnPlayerInteriorChange(playerid,newinteriorid,oldi nteriorid)
{
if(newinteriorid && !oldinteriorid)
{
for(new i = 0; i < 13; i ++)
{
GetPlayerWeaponData(playerid, i, Armas[playerid][i], Ammo[playerid][i]);
}
new reset;
SetPVarInt(playerid, "Armas", 1);
ResetPlayerWeapons(playerid);
reset = SetTimerEx("resetar", 1000, true, "d", playerid);
SendClientMessage(playerid, 0xFFFF00FF, "Suas armas foram retiradas, pois nгo й permitido usб-las em interior. Quando vocк sair, elas serгo devolvidas.");
}
else if(!newinteriorid)
{
if((GetPVarInt(playerid, "Armas")) && (!GetPVarInt(playerid, "Weapons")))
{
for(new i = 0; i < 13; i ++)
GivePlayerWeapon(playerid, Armas[playerid][i], Ammo[playerid][i]);
DeletePVar(playerid, "Armas");
KillTimer("reset");
SendClientMessage(playerid, 0xFFFF00FF, "Suas armas foram reentregues.");
}
DeletePVar(playerid, "Weapons");
}
return 1;
}
Reply


Messages In This Thread
Retirar arma - by clerISoN - 02.06.2013, 18:29
Re: Retirar arma - by Cromado - 02.06.2013, 18:49
Re: Retirar arma - by VivendoVirtual - 02.06.2013, 18:54
Re: Retirar arma - by Cromado - 02.06.2013, 19:13
Re: Retirar arma - by clerISoN - 02.06.2013, 21:04
Re: Retirar arma - by Cromado - 02.06.2013, 21:06
Re: Retirar arma - by clerISoN - 02.06.2013, 21:12
Re: Retirar arma - by VivendoVirtual - 02.06.2013, 21:25
Re: Retirar arma - by clerISoN - 02.06.2013, 21:30
Re: Retirar arma - by Don_Speed - 02.06.2013, 21:31

Forum Jump:


Users browsing this thread: 1 Guest(s)