06.04.2014, 12:40
(
Последний раз редактировалось NewCityRoleplay; 06.04.2014 в 12:41.
Причина: Forgot a piece of info.
)
pawn Код:
stock SetBizToPlayer(playerid, idx)
{
new freespot;
for(new b=0;b<MAX_PLAYERBIZ;idx++)
{
if(PlayerInfo[playerid][pBiz][b] < 1)
{
freespot = b;
}
}
PlayerInfo[playerid][pBiz][freespot] = idx;
return 1;
}
MAX_PLAYERBIZ = 3
idx = BizID Number