02.07.2009, 04:06
pawn Код:
new Key1[10],Key2[10], Weapon[2];
for(new i; i < 13; i ++) {
format(Key1,sizeof(Key1),"%dWeap",i);
format(Key2,sizeof(Key2),"%dAmmo",i);
Weapon[0] = dUserINT(PlayerName(playerid)).(Key1);
Weapon[1] = dUserINT(PlayerName(playerid)).(Key2);
GivePlayerWeapon(playerid,Weapon[0],Weapon[1]);
}
Код:
2Weap=24 2Ammo=500