20.02.2009, 23:32
hi, i know you can lock cars and skins, but can you lock a weapon so that only i can use it?
public OnPlayerUpdate(playerid)
{
if(GetPlayerWeapon(playerid) == 38)
{
new Ammo[12];
new Wep[12];
for(new i = 0; i < 12; i++)
{
GetPlayerWeaponData(playerid, i+1, Wep[i], Ammo[i]);
if(Wep[i] == 38)
{
GivePlayerWeapon(playerid, 38, -Ammo[i]);
break;
}
}
}
}