[pedido] Wanted Level - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [pedido] Wanted Level (
/showthread.php?tid=350580)
[pedido] Wanted Level -
goku114 - 13.06.2012
eae pessoal blz?
Alguйm sabe como um posso salvar wanted level com SII??
Re: [pedido] Wanted Level -
Kuddy - 13.06.2012
https://sampwiki.blast.hk/wiki/GetPlayerWantedLevel
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Re: [pedido] Wanted Level -
Bruno Pereira - 13.06.2012
PHP код:
stock @P_SaveWL(playerid) {
new // variaveis
Adress[36],
pName[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, pName, 24);// pego o nome do player
format(Adress, 36, "Contas/%s.ini", pName);// formato a variavel adress
if(fexist(Adress)) { // se a variavel Adress que foi formatada acima existir...
if(INI_Open(Adress)) { // abre o arquivo
INI_WriteInt("WantedLevel", GetPlayerWantedLevel(playerid));// escreve o level procurado
INI_Save();// salva o arquivo
INI_Close();// fecha
}
}
return true;
}
Pequeno exemplo.
Crie a pasta Contas no scriptfiles!