Jump to content

Recommended Posts

Posted
Acum 30 minute, BaD_bOy_MD a spus:

Sall ajutatima sa creiez comanda /savetuning pentru gamemodul Toxic-Game va rog frumos

pai vino si cu sursa creata de tine si te ajutam

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Posted

CMD:savetuning( playerid, params[] ) {
        new file[ 80 ], tuningname[ 40 ];
        if( sscanf( params,"s[40]", tuningname ) ) return SendClientMessage( playerid, -1, "USAGE: /savetuning [ tuning-name ]");
        if( !IsPlayerInAnyVehicle( playerid ) ) return SendErrorMessage( playerid, "You must be in the vehicle." );
        if( GetPlayerState( playerid ) != PLAYER_STATE_DRIVER ) return SendErrorMessage( playerid, "You must be in the driver's seat." );
        new vehicleid = GetPlayerVehicleID( playerid );
        format( file, sizeof( file ), T_FILE, tuningname );
        if( fexist( file ) ) return SendErrorMessage( playerid, "Already exist saved tuning with that name!");
       
        format( globalstring, sizeof( globalstring ), "Successfully saved tuning with name %s", tuningname );
        SendClientMessage( playerid, -1, globalstring );
       
        SaveTuning( playerid, vehicleid, tuningname );
        return true;
}

poftim nu ar trebui sa-ti dau comanda gata facuta, de aici te descurci tu

 

  • Upvote 1

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Posted
Acum 2 minute, Geani a spus:

CMD:savetuning( playerid, params[] ) {
        new file[ 80 ], tuningname[ 40 ];
        if( sscanf( params,"s[40]", tuningname ) ) return SendClientMessage( playerid, -1, "USAGE: /savetuning [ tuning-name ]");
        if( !IsPlayerInAnyVehicle( playerid ) ) return SendErrorMessage( playerid, "You must be in the vehicle." );
        if( GetPlayerState( playerid ) != PLAYER_STATE_DRIVER ) return SendErrorMessage( playerid, "You must be in the driver's seat." );
        new vehicleid = GetPlayerVehicleID( playerid );
        format( file, sizeof( file ), T_FILE, tuningname );
        if( fexist( file ) ) return SendErrorMessage( playerid, "Already exist saved tuning with that name!");
       
        format( globalstring, sizeof( globalstring ), "Successfully saved tuning with name %s", tuningname );
        SendClientMessage( playerid, -1, globalstring );
       
        SaveTuning( playerid, vehicleid, tuningname );
        return true;
}

poftim nu ar trebui sa-ti dau comanda gata facuta, de aici te descurci tu

 

ggg poate dai si tot systemul :D

Posted
Acum 8 minute, toik a spus:

ggg poate dai si tot systemul :D

este de ajuns atat 

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Posted
Acum 8 ore, BaD_bOy_MD a spus:

Nu merge

Nu merge

pai normal ca nu merge finca eu te-am dat doar comanda respectiva ca aia ai ceruto nu imi cere tot systemul ca nu sunt asa de darnic multumesc !

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.