Como guardar una estadistica??
#1

Ise un comando de "Hacerprecidente" y esta bien solo que no se como poner para que se guarde el precidente. Osea para que salga del juego y cuando entre siga siendo precidente. . . ALGUIEN PORFAVOR AYUDEME :C TENGO MUCHO CON ESTO . . . y tambien quiero que cuando aga "presidente" a alguien le de mucho dinero y unas armas. . . Y que las armas que compren en AmmuNation tambien se guarden se puede? :3 les agradeceria mucho su ayuda. . .
AQUI EL COMANDO POR SI LO NECESITAN..

COMMAND:hacerpresidente(playerid,params[]) {
new User, Level, Dia, Mes, Year;
if( Informacion[ playerid ] [ pAdmin ] >= 10 || IsPlayerAdmin(playerid)) {

if( sscanf(params, "ddddd", User, Level, Dia, Mes, Year)) return SendClientMessage(playerid, Error, "Error: utiliza /vdate, /Hacerpresidente [Jugador] [Aсo] [Dia/Mes/Aсo]");
if( IsPlayerConnected( User ) ) {
if( Level > 8 )return SendClientMessage(playerid, Error, "Error");
Informacion[User][presidente] = Level;
Informacion[User][pVdia] = Dia;
Informacion[User][pVmes] = Mes;
Informacion[User][pVyear] = Year;
SetPlayerSkin(playerid,163);
SendClientMessageEx( User, Blanco, " "Insertkaki"%s "Insertblanco"te a elejido como presidente, ahora eres el presidente "Insertlima"%d!", Nombre(playerid), Level);
SendClientMessage( User, Blanco, ""Insertkaki"Para Observar los comandos del presidente utiliza /Presidente");
SendClientMessageEx( playerid, Blanco, "Le Otorgastes nivel "Insertlima"%d "Insertadmin"de Cuenta Presidente a "Insertkaki"%s!", Level, Nombre(User));
PlayerPlaySound(User,1056,0.0,0.0,0.0);
GameTextForPlayer(User, "~G~~H~~H~~H~_Promovido a ser Presidente", 5000, 6);
}else return SendClientMessage(playerid, Error, "Error: El jugador no esta conectado!");
}else return SendClientMessage(playerid, COLOR_YELLOW, "[OMM]: Usted no puede usar este comando!");
return 1;
}
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=466096
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)