Oggi è 28/03/2024, 12:09

Tutti gli orari sono UTC + 1 ora [ ora legale ]





 Pagina 1 di 1 [ 8 messaggi ] 

  Apri un nuovo argomento Rispondi all’argomento

  Stampa pagina

Autore Messaggio
 Oggetto del messaggio: [GUIDA] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 1:41 
Avatar utente
Utente

Iscritto il: 28/10/2010
Messaggi: 8
Favourite GTA: GTA IV
PlayStation Network: Nessuno
Xbox Live: Nessuno
Xfire: nosdrifter

Karma
0


Non connesso
Informazioni:
* Questo tutorial è stato destinato gamemodes Roleplay.
* Questo non funzionerà con le caratteristiche lato client, bonus ecc acrobazia, macchine Sprunk e fucilato hamburger, saranno solo in grado di acquistare roba gratis.

Pawn Code
Codice:
# Define ResetMoneyBar ResetPlayerMoney
# Define UpdateMoneyBar GivePlayerMoney

New Cash[MAX_PLAYERS];

Stock GivePlayerCash(player, money)
(
    Cash[player] + = money;
    ResetMoneyBar(Player);/ / Resets the money in the original moneybar, 'Do not remove!
    UpdateMoneyBar(Player, Cash[player]);/ / Sets the money in the cash moneybar link to the server, 'Do not remove!
    return Cash[Player];
)
Stock SetPlayerCash(player, money)
(
    Cash[player] = money;
    ResetMoneyBar(Player);/ / Resets the money in the original moneybar, 'Do not remove!
    UpdateMoneyBar(Player, Cash[player]);/ / Sets the money in the cash moneybar link to the server, 'Do not remove!
    return Cash[Player];
)
Stock ResetPlayerCash(Player)
(
    Cash[player] = 0;
    ResetMoneyBar(Player);/ / Resets the money in the original moneybar, 'Do not remove!
    UpdateMoneyBar(Player, Cash[player]);/ / Sets the money in the cash moneybar link to the server, 'Do not remove!
    return Cash[Player];
)
Stock GetPlayerCash(Player)
(
    return Cash[Player];
)


OnPlayerConnect
Codice:
ResetPlayerCash(Player); / / resetting the variable to zero cash players.


OnGameModeInit
Codice:
SetTimer("MoneyTimer", 1000, 0);


Money Check Timer
Codice:
Public MoneyTimer()
(
    New username[MAX_PLAYER_NAME];
    for(new i=0; i<MAX_PLAYERS i+ +)
    (
   IF(IsPlayerConnected(i))
   (
       IF(GetPlayerCash(i) ! = GetPlayerMoney(i))
       (
      ResetMoneyBar(i),/ / Resets the money in the original moneybar, 'Do not remove!
      UpdateMoneyBar(i, GetPlayerCash(i));/ / Sets the money in the cash moneybar link to the server, 'Do not remove!
      New Hack = GetPlayerMoney(i) - GetPlayerCash(i);
      GetPlayerName(i, username,sizeof(username));
      printf("% s HAS picked up / $ attempted to spawn% d", username, hack);
       )
   )
    )
)

NOS32


Top
 E-mail  
 

 Oggetto del messaggio: Re: [TUTORIAL] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 15:09 
Avatar utente
Utente

Iscritto il: 28/10/2010
Messaggi: 8
Favourite GTA: GTA IV
PlayStation Network: Nessuno
Xbox Live: Nessuno
Xfire: nosdrifter

Karma
0


Non connesso
by SA-Mp.com


Top
 E-mail  
 
 Oggetto del messaggio: Re: [TUTORIAL] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 15:26 
Banned

Iscritto il: 31/10/2010
Messaggi: 1363
Località: Sicilia
Favourite GTA: San Andreas
Xfire: peppinux

Karma
-10


Non connesso
Si poteva fare meglio. E poi ci sono degli errori per esempio se metti sotto l'OnPlayerConnect, ResetPlayerCash(Player); ti darà per forza errore perchè prima non si è definito che scrivere Player è uguale a scrivere playerid : Razz :


Top
 E-mail  
 
 Oggetto del messaggio: Re: [TUTORIAL] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 19:47 
Avatar utente
Moderatore

Iscritto il: 28/10/2010
Messaggi: 919
Località: Veduggio con Colzano (Milano-Monza)
Favourite GTA: San Andreas
PlayStation Network: Nessuno
Xbox Live: Nessuno
Xfire: barle97

Karma
1


Non connesso
giustamente quoto, ma alla fine è comunque utile.

_________________
disasm 0xFFFF00 1: LE HANTENNE DEL RUTER SI MVONO DA SL!11!1!!1
[EPD]Giovanni94m: AHSUAHSAUSHAUSAHSAU
disasm 0xFFFF00 1: bella questa asd

[EPD]Giovanni94m: io non riesco a trovare un gioco che ci giocavo su ps1
[EPD]Giovanni94m: non ricordo il nome
[EPD]Giovanni94m: era un omino rosa
[EPD]Giovanni94m: ...
[BCD]barle_the_king: forse cercavi omino bianco [cit. google]
[BCD]barle_the_king: auhsahusuha
[EPD]Giovanni94m: no ahsau
[BCD]barle_the_king: firma duhahudshue

Immagine


Top
 E-mail  
 
 Oggetto del messaggio: Re: [TUTORIAL] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 20:08 
Banned

Iscritto il: 31/10/2010
Messaggi: 1363
Località: Sicilia
Favourite GTA: San Andreas
Xfire: peppinux

Karma
-10


Non connesso
Si ma qualcosa come
Codice:
printf("% s HAS picked up / $ attempted to spawn% d", username, hack);
non potrà funzionare mai dato che "%" e "s" sono staccati ecc... xD Meglio non postare cose fatte male che poi fanno incasinare gli utenti ;)


Top
 E-mail  
 
 Oggetto del messaggio: Re: [TUTORIAL] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 20:23 
Avatar utente
Utente

Iscritto il: 31/10/2010
Messaggi: 901
Località: Universo - Via Lattea - Sistema Solare - Pianeta Terra - Europa - Italia - Sicilia - Grammichele(CT)
Favourite GTA: San Andreas
Xfire: Privato

Karma
2


Non connesso
concordo con peppe, meglio sistemare lo script ;)

Comunque è meglio controllare che gli script funzionino prima di postarli

_________________
Immagine


I Miei Filterscript Per Sa-Mp

Rampone System By me and Mik_Teck
Autovelox System By me and Mik_Teck
Metro System By me
pLaserPointer By me

Immagine


Top
 E-mail  
 
 Oggetto del messaggio: Re: [TUTORIAL] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 20:32 
Avatar utente
Moderatore

Iscritto il: 28/10/2010
Messaggi: 919
Località: Veduggio con Colzano (Milano-Monza)
Favourite GTA: San Andreas
PlayStation Network: Nessuno
Xbox Live: Nessuno
Xfire: barle97

Karma
1


Non connesso
Sisi infatti io non ho detto che è corretto, però se gli si da una sistematinaa.. zac viene bene

_________________
disasm 0xFFFF00 1: LE HANTENNE DEL RUTER SI MVONO DA SL!11!1!!1
[EPD]Giovanni94m: AHSUAHSAUSHAUSAHSAU
disasm 0xFFFF00 1: bella questa asd

[EPD]Giovanni94m: io non riesco a trovare un gioco che ci giocavo su ps1
[EPD]Giovanni94m: non ricordo il nome
[EPD]Giovanni94m: era un omino rosa
[EPD]Giovanni94m: ...
[BCD]barle_the_king: forse cercavi omino bianco [cit. google]
[BCD]barle_the_king: auhsahusuha
[EPD]Giovanni94m: no ahsau
[BCD]barle_the_king: firma duhahudshue

Immagine


Top
 E-mail  
 
 Oggetto del messaggio: Re: [TUTORIAL] Money Tutorial Anti Hack
MessaggioInviato: 05/11/2010, 20:33 
Banned

Iscritto il: 31/10/2010
Messaggi: 1363
Località: Sicilia
Favourite GTA: San Andreas
Xfire: peppinux

Karma
-10


Non connesso
Già sono d'accordo comunque adesso creo una guida e posto come fare ;)


Top
 E-mail  
 
Visualizza ultimi messaggi:  Ordina per  
 Pagina 1 di 1 [ 8 messaggi ] 

  Apri un nuovo argomento Rispondi all’argomento

Tutti gli orari sono UTC + 1 ora [ ora legale ]



Chi c’è in linea

Visitano il forum: Nessuno e 23 ospiti


Non puoi aprire nuovi argomenti
Non puoi rispondere negli argomenti
Non puoi modificare i tuoi messaggi
Non puoi cancellare i tuoi messaggi
Non puoi inviare allegati

Cerca per:
Vai a:  
cron