28.04.2010, 00:06
Salvar Score
Inicio del GM
Em OnPlayerConnect:
em OnPlayerDisconnect:
OnGameModeInit:
[/pawn]
Final del GM
Tuto Sobre Isto Feito por mim
http://forum.sa-mp.com/index.php?topic=169012.0
Perdуn Pelo Mal Espanol soy Brasileiro
Inicio del GM
pawn Код:
#include <Dini>
pawn Код:
if(dini_Isset("score.ini",PlayerName(playerid))) SetPlayerScore(playerid,dini_Int("score.ini",PlayerName(playerid)));
pawn Код:
dini_IntSet("score.ini",PlayerName(playerid),GetPlayerScore(playerid));
pawn Код:
if(!fexist("score.ini")) dini_Create("score.ini");
Final del GM
pawn Код:
stock PlayerName(playerid)
{
new Name[MAX_PLAYERS];
GetPlayerName(playerid, Name, sizeof(Name));
return Name;
}
http://forum.sa-mp.com/index.php?topic=169012.0
Perdуn Pelo Mal Espanol soy Brasileiro