VC:MP 0.3 > ShowRoom (pawn)

GUPS 1.17

(1/17) > >>

Tamas:
General Use Pawn Script
Note: Check the Changelog file for more information.

Features:


* Registration System
* Admin System
* Vehicle System
* Property System
Thanks to the following peoples:


* DracoBlue
* Falcon
* PlayerX

Current Version: 1.17
Mirror#1: Download

aledark24:
gups 1.1 contain many bugs example /c register

but this is the solution
[pawn]
      if ( strcmp( cmd, "registrar", true ) == 0 )
   {
      tmp = strtok( cmdtext, idx );
       if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "Escribe: /c registrar [clave]" );
       else if ( IsLoggedIn( playerid ) ) SendClientMessage( playerid, RED, "Error: Ya estas registrado." );
        else if (PlayerLevel(playerid) >= 1) SendClientMessage(playerid, RED,"Este Nick-name ya esta registrado");// here is the solution FOR NOT register in the same count
       else
      {
         format( file, sizeof( file ), USERS_FILE, gPlayers[ playerid ] );
          new string[ 24 ], IP[ 24 ], szMsg[ 128 ];
         GetPlayerIp( playerid, IP, 24 );
         format( string, 24, "%s", IP );
         dini_Create( file );
         dini_Set( file, "Password", encrypt( tmp ) );
         dini_Set( file, "Login", "1" );
         dini_Set( file, "Bank", "0" );
         dini_Set( file, "Cash", "0" );
         dini_Set( file, "Level", "1" );
         dini_Set( file, "Stats", "1" );
         dini_Set( file, "Ip", string );
            GameTextForPlayer( playerid, "Registro Completo");
         SendClientMessage( playerid, COLOR_GREEN, "Te has registrado exitosamente." );
         format( szMsg, sizeof( szMsg ), "Tu clave:[ %s ] Tu Nivel: [ 1 ]", tmp, IP );
         SendClientMessage( playerid, RED, szMsg );
                SendClientMessage( playerid, COLOR_GREEN, "Para ver los comandos usa !Comandos" );
         PlayerInfo[ playerid ][ Logged ] = 1;
         PlayerInfo[ playerid ][ Level ] = 1;
         PlayerInfo[ playerid ][ Stats ] = 1;
      }
      return 1;
   }[/pawn]
Sorry my languaje is spanish xD but i show the bug xD

Tamas:
What do you mean by many bugs?
Be more specific.

omarlin97:

--- Quote from: aledark24 on August 17, 2012, 12:16:00 am ---gups 1.1 contain many bugs example /c register

but this is the solution
[pawn]
      if ( strcmp( cmd, "registrar", true ) == 0 )
   {
      tmp = strtok( cmdtext, idx );
       if ( !strlen( tmp ) ) SendClientMessage( playerid, COLOR_GREEN, "Escribe: /c registrar [clave]" );
       else if ( IsLoggedIn( playerid ) ) SendClientMessage( playerid, RED, "Error: Ya estas registrado." );
        else if (PlayerLevel(playerid) >= 1) SendClientMessage(playerid, RED,"Este Nick-name ya esta registrado");// here is the solution FOR NOT register in the same count
       else
      {
         format( file, sizeof( file ), USERS_FILE, gPlayers[ playerid ] );
          new string[ 24 ], IP[ 24 ], szMsg[ 128 ];
         GetPlayerIp( playerid, IP, 24 );
         format( string, 24, "%s", IP );
         dini_Create( file );
         dini_Set( file, "Password", encrypt( tmp ) );
         dini_Set( file, "Login", "1" );
         dini_Set( file, "Bank", "0" );
         dini_Set( file, "Cash", "0" );
         dini_Set( file, "Level", "1" );
         dini_Set( file, "Stats", "1" );
         dini_Set( file, "Ip", string );
            GameTextForPlayer( playerid, "Registro Completo");
         SendClientMessage( playerid, COLOR_GREEN, "Te has registrado exitosamente." );
         format( szMsg, sizeof( szMsg ), "Tu clave:[ %s ] Tu Nivel: [ 1 ]", tmp, IP );
         SendClientMessage( playerid, RED, szMsg );
                SendClientMessage( playerid, COLOR_GREEN, "Para ver los comandos usa !Comandos" );
         PlayerInfo[ playerid ][ Logged ] = 1;
         PlayerInfo[ playerid ][ Level ] = 1;
         PlayerInfo[ playerid ][ Stats ] = 1;
      }
      return 1;
   }[/pawn]
Sorry my languaje is spanish xD but i show the bug xD

--- End quote ---



alegay lo que ballas a postear ponlo en ingles-

aledark24:

--- Quote from: Tamas on September 23, 2012, 02:27:58 am ---What do you mean by many bugs?
Be more specific.

--- End quote ---


Example in the register i register

/c register aledark24 "password"

and exit of the game and example you enter whit my same name and put /c login "password"

show the password is incorrect right?? so you put whit my same name aledark24 /c login "you password" and delete my account and change my password... second bug !givecaSH "name amount" not give cash to another player ......

and /c setmoney "name" ammount example /c setmoney tamas 10000 and you have in your hand 56565444 delete you hand cash and put the another "10000"      and you lose you own money ....


sorry my english  ;D ;D ;D ;D

Navigation

[0] Message Index

[#] Next page

Go to full version