Jump to content
  • 0

Problema cu comanda V.I.P


Question

Posted

Salut,am problema cu comanda /saveskin

Deci cand scriu /saveskin ami scrie ca nu am vip level 3 dar eu am

Iata comanda:

[pawn]CMD:saveskin( playerid, params[ ] )

{

if ( PlayerInfo[ playerid ][ Vip ] == 3 )

{

new string[ 128 ];

format( string, 128, "You have successfully saved this skin (ID %d)", params[ 0 ] );

SendClientMessage( playerid, COLOR_RED, string);

SendClientMessage( playerid, COLOR_RED, "Type /outskin for leave this skin." );

PlayerInfo[ playerid ][ SkinIDd ] = GetPlayerSkin( playerid );

}

else

{

return SendClientMessage( playerid, COLOR_RED,"You need to be vip level 3 to use this command");

}

return 1;

}[/pawn]

Ce sa fac?

Zomboy.png

3 answers to this question

Recommended Posts

Posted

CMD:saveskin( playerid , params [ ] )

{

    #define SCM SendClientMessage

    if ( PlayerInfo [ playerid ] [ Vip ] < 3 ) return SCM ( playerid , 0xFFFFFFFF , "You need to be vip level 3 to use this command" ) ;

    if ( PlayerInfo [ playerid ] [ Vip ] == 3 )

    {

        new

            string [  128  ]

        ;

        format ( string , 128 , "You have successfully saved this skin (ID %d)" , params [ 0 ] ) ;

        SCM ( playerid , 0xFFFFFFFF , string ) ;

        SCM ( playerid , 0xFFFFFFFF , "Type /outskin for leave this skin." ) ;

        PlayerInfo [ playerid ] [ SkinIDd ] = GetPlayerSkin ( playerid ) ;

    }

    return ( 1 ) ;

}

Posted

[pawn]Deci cand scriu /saveskin ami scrie ca nu am vip level 3 dar eu am[/pawn]

Acel cod adica :

[pawn]if ( PlayerInfo [ playerid ] [ Vip ] == 3 )[/pawn]

Poate folosi comanda doar VIP Level 3 nu mai jos sau mai sus de 3 doar trei .

idiots.png
Posted

Anakin" post="137350" timestamp="1364714446"]

[pawn]Deci cand scriu /saveskin ami scrie ca nu am vip level 3 dar eu am[/pawn]

Acel cod adica :

[pawn]if ( PlayerInfo [ playerid ] [ Vip ] == 3 )[/pawn]

Poate folosi comanda doar VIP Level 3 nu mai jos sau mai sus de 3 doar trei .

Exact, si daca vrei sa fie de VIP mai mic de level 3 sau mai mare modifici asta:

if ( PlayerInfo [ playerid ] [ Vip ] == 3 )
Acel 3 find level-ul vipului care va avea acces la comanda
[ Vip ] == 3 )

Rareori ne gândim la ceea ce avem, dar mereu la ceea ce ne lipseşte

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.