Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted (edited)

Descriere tutorial: Am comanda /v spawn cum o scot si sa dea masinile toate cand intri pe server si cand iesi sa ti le i-a .... 

script:

	if( !strcmp( sParam, "spawn", true ) )
	{
	    if( !HaveOwnableVeh( playerid ) ) return SendClientMessage( playerid, -1, "Tu nu ai nicio masina personala" );
		gszString[ 0 ] = EOS;

		format( gszString, 556, "Slot 1: %s%s\nSlot 2: %s%s\nSlot 3: %s%s", ( vMySQLID[ SpawnedVeh[ playerid ] ] == pVeh[ playerid ][ VEH_SLOT_CAR ] ) ? ( "{FF0000}" ) : ( "{C0FF00}" ), ( pVeh[ playerid ][ VEH_SLOT_CAR ] == 0 || vInfo[ pVeh[ playerid ][ VEH_SLOT_CAR ] ][ vModel ] == 0 ) ? ( "-" ) : ( GetVehicleName( vInfo[ pVeh[ playerid ][ VEH_SLOT_CAR ] ][ vModel ] ) ),
																		    ( vMySQLID[ SpawnedVeh[ playerid ] ] == pVeh[ playerid ][ VEH_SLOT_BIKE ] ) ? ( "{FF0000}" ) : ( "{C0FF00}" ), ( pVeh[ playerid ][ VEH_SLOT_BIKE ] == 0 || vInfo[ pVeh[ playerid ][ VEH_SLOT_BIKE ] ][ vModel ] == 0 ) ? ( "-" ) : ( GetVehicleName( vInfo[ pVeh[ playerid ][ VEH_SLOT_BIKE ] ][ vModel ] ) ),
																		    ( vMySQLID[ SpawnedVeh[ playerid ] ] == pVeh[ playerid ][ VEH_SLOT_OTHERS ] ) ? ( "{FF0000}" ) : ( "{C0FF00}" ), ( pVeh[ playerid ][ VEH_SLOT_OTHERS ] == 0 || vInfo[ pVeh[ playerid ][ VEH_SLOT_OTHERS ] ][ vModel ] == 0 ) ? ( "-" ) : ( GetVehicleName( vInfo[ pVeh[ playerid ][ VEH_SLOT_OTHERS ] ][ vModel ] ) ) );
		if( P_DATA[ playerid ][ PSlot1 ] != 0 )
		{
			format( gszString, 556, "%s\nSlot 4: %s%s", gszString, ( vMySQLID[ SpawnedVeh[ playerid ] ] == pVeh[ playerid ][ VEH_SLOT_CAR2 ] ) ? ( "{FF0000}" ) : ( "{C0FF00}" ), ( pVeh[ playerid ][ VEH_SLOT_CAR2 ] == 0 || vInfo[ pVeh[ playerid ][ VEH_SLOT_CAR2 ] ][ vModel ] == 0 ) ? ( "-" ) : ( GetVehicleName( vInfo[ pVeh[ playerid ][ VEH_SLOT_CAR2 ] ][ vModel ] ) ) );
		}
		if( P_DATA[ playerid ][ PSlot2 ] != 0 )
		{
			format( gszString, 556, "%s\nSlot 5: %s%s", gszString, ( vMySQLID[ SpawnedVeh[ playerid ] ] == pVeh[ playerid ][ VEH_SLOT_CAR3 ] ) ? ( "{FF0000}" ) : ( "{C0FF00}" ), ( pVeh[ playerid ][ VEH_SLOT_CAR3 ] == 0 || vInfo[ pVeh[ playerid ][ VEH_SLOT_CAR3 ] ][ vModel ] == 0 ) ? ( "-" ) : ( GetVehicleName( vInfo[ pVeh[ playerid ][ VEH_SLOT_CAR3 ] ][ vModel ] ) ) );
		}
		ShowPlayerDialog( playerid, D_SpawnVeh, DIALOG_STYLE_LIST, "Select vehicle for spawn", gszString, "OK", "Close" );
	    return 1;
	}

Ps: Am scris repede..

Edit: Cine ma ajuta are +1

Edited by aurelian99
Guest
This topic is now closed to further replies.
×
×
  • 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.