Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <DOF2>
- #define PSDPLUGIN //Caso não queira utilizar a plugin PSD comente essa linha.
- /*
- Weapon Skill System por Mandrack_FreeZe.
- 5 Leveis de armas
- Incluindo todas as armas que da para setar a skill
- Incluido sistema de salvamento de skill dos players em Fini
- Não retire os Créditos!
- */
- #if defined PSDPLUGIN
- native CriarPasta(pasta[]);
- #endif
- new String[60];
- new DESkill[MAX_PLAYERS], PSkill[MAX_PLAYERS], SHSkill[MAX_PLAYERS], PSSkill[MAX_PLAYERS],SSSkill[MAX_PLAYERS],SPASSkill[MAX_PLAYERS],MUSkill[MAX_PLAYERS], MPSkill[MAX_PLAYERS],AKSkill[MAX_PLAYERS], M4Skill[MAX_PLAYERS], SRSkill[MAX_PLAYERS], FSAtivado;
- forward WSSLoad(playerid);
- forward WSSSave(playerid);
- public OnFilterScriptInit()
- {
- #if defined PSDPLUGIN
- if(DOF2_FileExists("Player Skill"))
- {
- print("\n\n---------------------------------------------------");
- print(" Weapon Skill System por Mandrack_FreeZe 2.0");
- print(" PSD plugin criado por Victor')");
- print("-----------------------------------------------------");
- print(" Weapon Skill System carregado com sucesso!\n\n");
- }
- else {
- CriarPasta("scriptfiles\\Player Skill");
- print("Weapon Skill System criou a pasta 'Player Skill' automaticamente.");
- print("\n\n---------------------------------------------------");
- print(" Weapon Skill System por Mandrack_FreeZe 2.0");
- print(" PSD plugin criado por Victor'");
- print("-----------------------------------------------------");
- print(" Weapon Skill System carregado com sucesso!\n\n");
- }
- #else
- print("\n\n---------------------------------------------------");
- print(" Weapon Skill System por Mandrack_FreeZe 2.0");
- print(" PSD plugin criado por Victor')");
- print("-----------------------------------------------------");
- print(" Weapon Skill System carregado com sucesso!\n\n");
- #endif
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n---------------------------------------------------");
- print(" Weapon Skill System por Mandrack_FreeZe 2.0");
- print("-----------------------------------------------------\n");
- print(" Weapon Skill System desligado com sucesso!");
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- WSSLoad(playerid);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- WSSSave(playerid);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(FSAtivado == 0)
- {
- if(GetPlayerWeapon(killerid) == 24)
- {
- DESkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 22)
- {
- PSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 23)
- {
- PSSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 25)
- {
- SHSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 26)
- {
- SSSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 27)
- {
- SPASSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 28)
- {
- MUSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 29)
- {
- MPSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 30)
- {
- AKSkill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 31)
- {
- M4Skill[killerid]++;
- }
- else if(GetPlayerWeapon(killerid) == 34)
- {
- SRSkill[killerid]++;
- }
- //LEVEL 1
- if(DESkill[killerid] == 10 && GetPlayerWeapon(killerid) == 24)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_DESERT_EAGLE, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com Desert Eagle foi melhorada para o nivel 1!");
- }
- else if(PSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 22)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com Pistola foi melhorada para o nivel 1!");
- }
- else if(PSSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 23)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL_SILENCED, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com Silenced Pistol foi melhorada para o nivel 1!");
- }
- else if(SHSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 25)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SHOTGUN, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com Shotgun foi melhorada para o nivel 1!");
- }
- else if(SSSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 26)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com Sawnoff Shotgun foi melhorada para o nivel 1!");
- }
- else if(SPASSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 27)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SPAS12_SHOTGUN, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com SPAS12 Shotgun foi melhorada para o nivel 1!");
- }
- else if(MUSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 28)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MICRO_UZI, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com Micro UZI foi melhorada para o nivel 1!");
- }
- else if(MPSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 29)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MP5, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com MP5 foi melhorada para o nivel 1!");
- }
- else if(AKSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 30)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_AK47, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com AK47 foi melhorada para o nivel 1!");
- }
- else if(M4Skill[killerid] == 10 && GetPlayerWeapon(killerid) == 31)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_M4, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com M4 foi melhorada para o nivel 1!");
- }
- else if(SRSkill[killerid] == 10 && GetPlayerWeapon(killerid) == 34)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SNIPERRIFLE, 1);
- SendClientMessage(killerid, -1, "Sua abilidade com Sniper Rifle foi melhorada para o nivel 1!");
- }
- //FIM LEVEL 1
- //LEVEL 2
- else if(DESkill[killerid] == 20 && GetPlayerWeapon(killerid) == 24)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_DESERT_EAGLE, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com Desert Eagle foi melhorada para o nivel 2!");
- }
- else if(PSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 22)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com Pistola foi melhorada para o nivel 2!");
- }
- else if(PSSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 23)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL_SILENCED, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com Silenced Pistol foi melhorada para o nivel 2!");
- }
- else if(SHSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 25)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SHOTGUN, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com Shotgun foi melhorada para o nivel 2!");
- }
- else if(SSSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 26)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com Sawnoff Shotgun foi melhorada para o nivel 2!");
- }
- else if(SPASSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 27)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SPAS12_SHOTGUN, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com SPAS12 Shotgun foi melhorada para o nivel 2!");
- }
- else if(MUSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 28)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MICRO_UZI, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com Micro UZI foi melhorada para o nivel 2!");
- }
- else if(MPSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 29)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MP5, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com MP5 foi melhorada para o nivel 2!");
- }
- else if(AKSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 30)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_AK47, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com AK47 foi melhorada para o nivel 2!");
- }
- else if(M4Skill[killerid] == 20 && GetPlayerWeapon(killerid) == 31)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_M4, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com M4 foi melhorada para o nivel 2!");
- }
- else if(SRSkill[killerid] == 20 && GetPlayerWeapon(killerid) == 34)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SNIPERRIFLE, 2);
- SendClientMessage(killerid, -1, "Sua abilidade com Sniper Rifle foi melhorada para o nivel 2!");
- }
- //FIM LEVEL 2
- //LEVEL 3
- else if(DESkill[killerid] == 30 && GetPlayerWeapon(killerid) == 24)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_DESERT_EAGLE, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com Desert Eagle foi melhorada para o nivel 3!");
- }
- else if(PSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 22)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com Pistola foi melhorada para o nivel 3!");
- }
- else if(PSSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 23)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL_SILENCED, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com Silenced Pistol foi melhorada para o nivel 3!");
- }
- else if(SHSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 25)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SHOTGUN, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com Shotgun foi melhorada para o nivel 3!");
- }
- else if(SSSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 26)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com Sawnoff Shotgun foi melhorada para o nivel 3!");
- }
- else if(SPASSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 27)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SPAS12_SHOTGUN, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com SPAS12 Shotgun foi melhorada para o nivel 3!");
- }
- else if(MUSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 28)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MICRO_UZI, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com Micro UZI foi melhorada para o nivel 3!");
- }
- else if(MPSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 29)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MP5, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com MP5 foi melhorada para o nivel 3!");
- }
- else if(AKSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 30)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_AK47, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com AK47 foi melhorada para o nivel 3!");
- }
- else if(M4Skill[killerid] == 30 && GetPlayerWeapon(killerid) == 31)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_M4, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com M4 foi melhorada para o nivel 3!");
- }
- else if(SRSkill[killerid] == 30 && GetPlayerWeapon(killerid) == 34)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SNIPERRIFLE, 3);
- SendClientMessage(killerid, -1, "Sua abilidade com Sniper Rifle foi melhorada para o nivel 3!");
- }
- //FIM LEVEL 3
- //LEVEL 4
- else if(DESkill[killerid] == 40 && GetPlayerWeapon(killerid) == 24)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_DESERT_EAGLE, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com Desert Eagle foi melhorada para o nivel 4!");
- }
- else if(PSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 22)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com Pistola foi melhorada para o nivel 4!");
- }
- else if(PSSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 23)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL_SILENCED, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com Silenced Pistol foi melhorada para o nivel 4!");
- }
- else if(SHSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 25)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SHOTGUN, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com Shotgun foi melhorada para o nivel 4!");
- }
- else if(SSSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 26)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com Sawnoff Shotgun foi melhorada para o nivel 4!");
- }
- else if(SPASSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 27)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SPAS12_SHOTGUN, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com SPAS12 Shotgun foi melhorada para o nivel 4!");
- }
- else if(MUSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 28)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MICRO_UZI, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com Micro UZI foi melhorada para o nivel 4!");
- }
- else if(MPSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 29)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MP5, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com MP5 foi melhorada para o nivel 4!");
- }
- else if(AKSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 30)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_AK47, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com AK47 foi melhorada para o nivel 4!");
- }
- else if(M4Skill[killerid] == 40 && GetPlayerWeapon(killerid) == 31)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_M4, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com M4 foi melhorada para o nivel 4!");
- }
- else if(SRSkill[killerid] == 40 && GetPlayerWeapon(killerid) == 34)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SNIPERRIFLE, 4);
- SendClientMessage(killerid, -1, "Sua abilidade com Sniper Rifle foi melhorada para o nivel 4!");
- }
- //FIM LEVEL 4
- //LEVEL 5
- else if(DESkill[killerid] == 50 && GetPlayerWeapon(killerid) == 24)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_DESERT_EAGLE, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com Desert Eagle foi melhorada para o nivel 5!");
- }
- else if(PSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 22)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com Pistola foi melhorada para o nivel 5!");
- }
- else if(PSSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 23)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_PISTOL_SILENCED, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com Sileced Pistol foi melhorada para o nivel 5!");
- }
- else if(SHSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 25)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SHOTGUN, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com Shotgun foi melhorada para o nivel 5!");
- }
- else if(SSSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 26)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com Sawoff Shotgun foi melhorada para o nivel 5!");
- }
- else if(SPASSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 27)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SPAS12_SHOTGUN, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com SPAS12 Shotgun foi melhorada para o nivel 5!");
- }
- else if(MUSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 28)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MICRO_UZI, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com Micro UZI foi melhorada para o nivel 5!");
- }
- else if(MPSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 29)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_MP5, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com MP5 foi melhorada para o nivel 5!");
- }
- else if(AKSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 30)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_AK47, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com AK47 foi melhorada para o nivel 5!");
- }
- else if(M4Skill[killerid] == 50 && GetPlayerWeapon(killerid) == 31)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_M4, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com M4 foi melhorada para o nivel 5!");
- }
- else if(SRSkill[killerid] == 50 && GetPlayerWeapon(killerid) == 34)
- {
- SetPlayerSkillLevel(killerid, WEAPONSKILL_SNIPERRIFLE, 5);
- SendClientMessage(killerid, -1, "Sua abilidade com Sniper Rifle foi melhorada para o nivel 5!");
- }
- }
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
- format(String, sizeof(String), "O player %s(ID %d) desligou o Weapon Skill System",nome, playerid);
- if (strcmp("/ativarwss", cmdtext, true, 10) == 0)
- {
- if(IsPlayerAdmin(playerid))
- {
- if(FSAtivado == 0 )
- {
- FSAtivado = 1;
- print(String);
- SendClientMessage(playerid, -1, "Weapon Skill System desativado com sucesso!");
- }
- else if(FSAtivado == 1)
- {
- SendClientMessage(playerid, -1, "Weapon Skill System ativado com sucesso!");
- }
- } else {
- SendClientMessage(playerid, -1, "Você não é um administrador!");
- }
- return 1;
- }
- if (strcmp("/1", cmdtext, true, 10) == 0)
- {
- SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 5);
- SendClientMessage(playerid, -1, "Sua abilidade com Desert Eagle foi melhorada para o nivel 5!");
- return 1;
- }
- if (strcmp("/2", cmdtext, true, 10) == 0)
- {
- SetPlayerSkillLevel(playerid, WEAPONSKILL_DESERT_EAGLE, 1);
- SendClientMessage(playerid, -1, "Sua abilidade com Desert Eagle foi melhorada para o nivel 1!");
- return 1;
- }
- return 0;
- }
- public WSSLoad(playerid)
- {
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
- format(String, sizeof(String), "Player Skill/%s.ini",nome);
- if(DOF2_FileExists(String))
- {
- DESkill[playerid] = DOF2_GetInt(String, "DESkill");
- PSkill[playerid] = DOF2_GetInt(String, "SPSkill");
- PSSkill[playerid] = DOF2_GetInt(String, "PSSkill");
- SHSkill[playerid] = DOF2_GetInt(String, "SHSkill");
- SSSkill[playerid] = DOF2_GetInt(String, "SSSkill");
- SPASSkill[playerid] = DOF2_GetInt(String, "SPASSkill");
- MUSkill[playerid] = DOF2_GetInt(String, "MUSkill");
- MPSkill[playerid] = DOF2_GetInt(String, "MPSkill");
- AKSkill[playerid] = DOF2_GetInt(String, "AKSkill");
- M4Skill[playerid] = DOF2_GetInt(String, "M4Skill");
- SRSkill[playerid] = DOF2_GetInt(String, "SRSkill");
- DOF2_SaveFile();
- }
- else {
- DOF2_CreateFile(String);
- DOF2_SetInt(String, "DESkill", DESkill[playerid]);
- DOF2_SetInt(String, "SPSkill", PSkill[playerid]);
- DOF2_SetInt(String, "PSSkill", PSSkill[playerid]);
- DOF2_SetInt(String, "SHSkill", SHSkill[playerid]);
- DOF2_SetInt(String, "SSSkill", SSSkill[playerid]);
- DOF2_SetInt(String, "SPASSkill", SPASSkill[playerid]);
- DOF2_SetInt(String, "MUSkill", MUSkill[playerid]);
- DOF2_SetInt(String, "MPSkill", MPSkill[playerid]);
- DOF2_SetInt(String, "AKSkill", AKSkill[playerid]);
- DOF2_SetInt(String, "M4Skill", M4Skill[playerid]);
- DOF2_SetInt(String, "SRSkill", SRSkill[playerid]);
- DOF2_SaveFile();
- }
- return 1;
- }
- public WSSSave(playerid)
- {
- new nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
- format(String, sizeof(String), "Player Skill/%s.ini",nome);
- if(DOF2_FileExists(String))
- {
- DOF2_SetInt(String, "DESkill", DESkill[playerid]);
- DOF2_SetInt(String, "SPSkill", PSkill[playerid]);
- DOF2_SetInt(String, "PSSkill", PSSkill[playerid]);
- DOF2_SetInt(String, "SHSkill", SHSkill[playerid]);
- DOF2_SetInt(String, "SSSkill", SSSkill[playerid]);
- DOF2_SetInt(String, "SPASSkill", SPASSkill[playerid]);
- DOF2_SetInt(String, "MUSkill", MUSkill[playerid]);
- DOF2_SetInt(String, "MPSkill", MPSkill[playerid]);
- DOF2_SetInt(String, "AKSkill", AKSkill[playerid]);
- DOF2_SetInt(String, "M4Skill", M4Skill[playerid]);
- DOF2_SetInt(String, "SRSkill", SRSkill[playerid]);
- DOF2_SaveFile();
- }
- else {
- DOF2_CreateFile(String);
- DOF2_SetInt(String, "DESkill", DESkill[playerid]);
- DOF2_SetInt(String, "SPSkill", PSkill[playerid]);
- DOF2_SetInt(String, "PSSkill", PSSkill[playerid]);
- DOF2_SetInt(String, "SHSkill", SHSkill[playerid]);
- DOF2_SetInt(String, "SSSkill", SSSkill[playerid]);
- DOF2_SetInt(String, "SPASSkill", SPASSkill[playerid]);
- DOF2_SetInt(String, "MUSkill", MUSkill[playerid]);
- DOF2_SetInt(String, "MPSkill", MPSkill[playerid]);
- DOF2_SetInt(String, "AKSkill", AKSkill[playerid]);
- DOF2_SetInt(String, "M4Skill", M4Skill[playerid]);
- DOF2_SetInt(String, "SRSkill", SRSkill[playerid]);
- DOF2_SaveFile();
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement