Jump to content
  • 0

Problema


IntrebariFaraRaspuns

Question

Salut

Cand dau /giveallcash se pun bani,iar cand dau relog dispar bani

COMANDA:

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

{

if ( PlayerInfo [ playerid ] [ Level ] >= 4 || IsPlayerAdmin ( playerid ) )

{

    new cash;

    if ( sscanf ( params , "d" , cash ) )

    {

    SendClientMessage ( playerid , red , "{FF0000}Foloseste /giveallcash [ suma ]" ) ;

    SendClientMessage ( playerid , red , "{FF0000}ATENTIE!:{AD8693}Nu da o suma exagerat de mare" ) ;

    }

    else

    {

    for ( new i = 0;i <MAX_PLAYERS;i++ )

    {

GivePlayerMoney ( i , cash ) ;

new str [ 150 ];

            format ( str , 150 , "{B3B3B3}Administratorul {FF0000}%s {B3B3B3}a dat tuturor playerilor o suma de {FF0000}%d $" , GetName ( playerid ) , cash ) ;

            SendClientMessage ( i , red , str ) ;

    }

}

}

else

{

    SendClientMessage ( playerid , red , "{B3B3B3}Trebuie sa fii macar admin level 5 pentru a folosi aceasta comanda" ) ;

}

return 1;

}[/pawn]

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Comanda nu are nici o problema.

Apropo, comanda aia o sa dea la toti aceeasi suma, adica tu pui 100 si 100 o sa aiba toti.

Numele comenzii este "GIVE all cash" nu SET, deci ar trebuii sa fie GivePlayerMoney ( i , GetPlayerMoney( i ) + cash ), adica banii care ii are deja + suma setata de tine.

Just Rock

Link to comment
Share on other sites

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.