14.05.2014, 11:18
PHP код:
stock GivePlayerItem(playerid,legalitem,item,ammount,percent)
{
new item = random(ammount);
switch (random(percent))
{
case 0, 1:
{
RLTnfo[playerid][legalitem] += item;
metal += item;
new rep[128];
format (rep, sizeof(rep), "Found Metal %d",item);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Scavenge Report:");
SendClientMessage(playerid, COLOR_LIGHTBLUE, rep);
}
}
return 0;
}
PHP код:
new item = random (amount)