09.01.2012, 01:44
PHP код:
forward DetectorArmas(playerid);
public DetectorArmas(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 247.8819,63.5701,1003.6406))
{
if(Armas[playerid] == 0)
{
for (new i = 0; i < 13; i++) GetPlayerWeaponData(playerid, i, weapons[i][0][playerid], weapons[i][1][playerid])
Armas[playerid] = 1;
ResetPlayerWeapons(playerid);
SendClientMessage(playerid,0xFF0000AA,"Vocк deixou suas armas no detector de metal");
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 245.8359,63.4817,1003.6406))
{
if(Armas[playerid] == 1)
{
for (new i = 0; i < 13; i++) GivePlayerWeapon(playerid, weapons[i][0][playerid], weapons[i][1][playerid]);
SendClientMessage(playerid, 0xFF0000AA," ** Pegando a arma dos outros nй!");
}
}
return 1;
}