10.06.2013, 09:31
remove all pickups and add like this
then go at
pawn Код:
new AmmuPickup;//Top on the script
pawn Код:
public OnGameModeInit()
{
AmmuPickup = CreatePickup(1274 ,1,287.9525,-105.9843,1001.5156,-1);
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == AmmuPickup)
{
if(!playerDB[playerid][teisesG])
{
SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Jūs negalite pirkti ginklų, kol neturite licenzijos, iљsilaikykite ją!");
}
else{
ShowPlayerDialog(playerid,DIALOG_AMMU_GUN,DIALOG_STYLE_LIST,"Parduotuvė","Deagle(100)\nColt(100)\nMP5(100)\nShotgun(100)","Pasirinkti","Atgal");
}
}
return 1;
}