22.01.2011, 18:38
Quote:
I made this as my load at spawn:
Код:
if(gPlayerLogged[playerid] == 1 && HasDied[playerid] == 0) { new a, a1, b, b1, c, c1, d, d1, e, e1, f, f1, g, g1, h, h1, i, i1, j, j1, k, k1, l, l1, m, m1; a = dini_Int(file, "weaponSlot0"); a1 = dini_Int(file, "weaponSlot0Ammo"); b = dini_Int(file, "weaponSlot1"); b1 = dini_Int(file, "weaponSlot1Ammo"); c = dini_Int(file, "weaponSlot2"); c1 = dini_Int(file, "weaponSlot2Ammo"); d = dini_Int(file, "weaponSlot3"); d1 = dini_Int(file, "weaponSlot3Ammo"); e = dini_Int(file, "weaponSlot4"); e1 = dini_Int(file, "weaponSlot4Ammo"); f = dini_Int(file, "weaponSlot5"); f1 = dini_Int(file, "weaponSlot5Ammo"); g = dini_Int(file, "weaponSlot6"); g1 = dini_Int(file, "weaponSlot6Ammo"); h = dini_Int(file, "weaponSlot7"); h1 = dini_Int(file, "weaponSlot7Ammo"); i = dini_Int(file, "weaponSlot8"); i1 = dini_Int(file, "weaponSlot8Ammo"); j = dini_Int(file, "weaponSlot9"); j1 = dini_Int(file, "weaponSlot8Ammo"); k = dini_Int(file, "weaponSlot10"); k1 = dini_Int(file, "weaponSlot10Ammo"); l = dini_Int(file, "weaponSlot11"); l1 = dini_Int(file, "weaponSlot11Ammo"); m = dini_Int(file, "weaponSlot12"); m1 = dini_Int(file, "weaponSlot12Ammo"); if(a != 0 && a1 != 0) { GivePlayerWeapon(playerid, a, a1); } if(b != 0 && b1 != 0) { GivePlayerWeapon(playerid, b, b1); } if(c != 0 && c1 != 0) { GivePlayerWeapon(playerid, c, c1); } if(d != 0 && d1 != 0) { GivePlayerWeapon(playerid, d, d1); } if(e != 0 && e1 != 0) { GivePlayerWeapon(playerid, e, e1); } if(f != 0 && f1 != 0) { GivePlayerWeapon(playerid, f, f1); } if(g != 0 && g1 != 0) { GivePlayerWeapon(playerid, g, g1); } if(h != 0 && h1 != 0) { GivePlayerWeapon(playerid, h, h1); } if(i != 0 && i1 != 0) { GivePlayerWeapon(playerid, i, i1); } if(j != 0 && j1 != 0) { GivePlayerWeapon(playerid, j, j1); } if(k != 0 && k1 != 0) { GivePlayerWeapon(playerid, k, k1); } if(l != 0 && l1 != 0) { GivePlayerWeapon(playerid, l, l1); } if(m != 0 && m1 != 0) { GivePlayerWeapon(playerid, m, m1); } } I mean, i got the weapons, if i scroll to a weaopn it goes to fist mode again. But they are there, how can i help this problem away? |