Jump to content
  • 0

Ajutor!!Problema spawn!!


Question

Posted
Problema intalnita (descriere):Am si eu un GM si cand vrea sa dau /v spawn dau sa se spawneze un sultan se spawneaza,si pe urma vreau sa spawnez un infernus,se despawneaza sultanul si se spawneaza infernusul
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
    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%snSlot 2: %s%snSlot 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, "%snSlot 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, "%snSlot 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;
    }
Imagini / Video (optional):  

Ati incercat sa rezolvati singur?: Da

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

GM-ul tau e construit astfel incat sa poti spawna o singura masina personala, si atunci cand aplici o comanda (ex: /carplate sau alte comenzi ce tine cont de masina spawnata) efectul comenzii il preia doar masina spawnata, nu toate. Tu daca faci script-ul astfel incat sa spawnezi mai multe masini, vei da tot gm-ul peste cap, intr-un fel.

Edited by #Teddy

Ocupation: Youtube, Mined Bitcoin's, Scripting & Mapping SA:MP

  • 0
Posted

GM-ul tau e construit astfel incat sa poti spawna o singura masina personala, si atunci cand aplici o comanda (ex: /carplate sau alte comenzi ce tine cont de masina spawnata) efectul comenzii il preia doar masina spawnata, nu toate. Tu daca faci script-ul astfel incat sa spawnezi mai multe masini, vei da tot gm-ul peste cap, intr-un fel.

Si nu pot sa fac GM-ul?

  • 0
Posted

Si nu pot sa fac GM-ul?

Daca-mi arati ce ai incercat tu sa faci mai intai, o sa te ajut , in caz contrar : Topic Closed .

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.