Password=192676593 Ip=127.0.0.1 Level=10 Cash=4500 Deaths=0 Bankcash=10000 Score=0 PrimWep=33 SubWep=23 MeleeWep=8 PrimWep_Ammo=200 SubWep_Ammo=200 MeleeWep_Ammo=1
dini_IntSet(playerfile, "PrimWep", GetPVarInt(playerid,"PrimWep"));
dini_IntSet(playerfile, "SubWep", GetPVarInt(playerid,"SubWep"));
dini_IntSet(playerfile, "MeleeWep", GetPVarInt(playerid,"MeleeWep"));
dini_IntSet(playerfile, "PrimWep_Ammo", GetPVarInt(playerid,"PrimWep_Ammo"));
dini_IntSet(playerfile, "SubWep_Ammo", GetPVarInt(playerid,"SubWep_Ammo"));
dini_IntSet(playerfile, "MeleeWep_Ammo", GetPVarInt(playerid,"MeleeWep_Ammo"));
You dont really need a tut, just for weapons, check out dialogs, style list would help you out
|
GetWeaponAmmo(playerid,weapon) { new weapons[13][2]; for (new i = 0; i < 13; i++) { GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]); if(weapons[i][0] == weapon) return weapons[i][1]; } return 0; }
dini_IntSet(playerfile, "PrimWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"PrimWep"))); dini_IntSet(playerfile, "SubWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"SubWep_Ammo"))); dini_IntSet(playerfile, "MeleeWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"MeleeWep_Ammo")));
dini_IntSet(playerfile, "PrimWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"PrimWep"))); dini_IntSet(playerfile, "SubWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"SubWep_Ammo"))); dini_IntSet(playerfile, "MeleeWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"MeleeWep_Ammo")));
dini_IntSet(playerfile, "PrimWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"PrimWep"))); dini_IntSet(playerfile, "SubWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"SubWep"))); dini_IntSet(playerfile, "MeleeWep_Ammo", GetWeaponAmmo(playerid,GetPVarInt(playerid,"MeleeWep")));