[pedido] Wanted Level
#1

eae pessoal blz?

Alguйm sabe como um posso salvar wanted level com SII??
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerWantedLevel
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Reply
#3

PHP код:
stock @P_SaveWL(playerid) {
    new 
// variaveis
        
Adress[36],
        
pName[MAX_PLAYER_NAME]
    ;
    
GetPlayerName(playeridpName24);// pego o nome do player
    
format(Adress36"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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)