18.01.2015, 17:23
pawn Код:
if(listitem == 3)
{
if(ArmaShock[playerid] == false)
{
ResetPlayerWeaponsEx(playerid);
SetPlayerAttachedObject(playerid,1,19142,1,0.1,0.05,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,2,19141,2,0.11,0.0,0.0,0.0,0.0,0.0);
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0.0,0.0,0.0,0.0,180.0);
GivePlayerWeapon(playerid, 33, 10);
SendClientMessage(playerid,COLOR_RED,"Vocк equipou sua arma de shock !");
SendClientMessage(playerid,COLOR_RED,"Obs: Sу use no procurado se ele tentar fugir, caso contrбrio vocк serб punido !");
TogglePlayerControllable(playerid, 1);
ArmaShock[playerid] = true;
}
else
{
ResetPlayerWeaponsEx(playerid);
RemovePlayerAttachedObject(playerid, 1);
RemovePlayerAttachedObject(playerid, 2);
RemovePlayerAttachedObject(playerid, 3);
SendClientMessage(playerid,COLOR_RED,"Vocк Desequipou sua arma de shock !");
ArmaShock[playerid] = false;
}
}