Jump to content

Ajutor Creeare comanda /savetuning


BaD_bOy_MD

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.