Jump to content
  • 0

Givemoney


kenzor

Question

8 answers to this question

Recommended Posts

Guest PlayON

CMD:givemoney( playerid, params[ ] )

{

    new Player, Moneys;

  if ( !IsPlayerAdmin( playerid ) ) return SendClientMesage( playerid, -1, "Doar Administratorii au voie la aceasta comanda!");

    if ( sscanf( params, "ud", Player, Moneys ) ) return SendClientMessage( playerid, -1, "USAGE: /givemoney <id> <amount>" );

    if ( Player == (0xFFFF) ) return SendClientMessage( playerid, -1, "Player is not connected!");

    if ( Moneys < 1000 || Moneys > 10000000 ) return SendClientMessage( playerid, -1, "Minimum moneys to send is \"1.000\" and maximum is \"10.000.000\"" );

    SetPlayerMoney( Player, GetPlayerMoney( Player ) + Moneys );

    new Str[ 150 ], PlayerName[ MAX_PLAYER_NAME  ], Name[ MAX_PLAYER_NAME ];

    GetPlayerName( playerid, Name, MAX_PLAYER_NAME );

    GetPlayerName( Player, PlayerName, MAX_PLAYER_NAME );

    format( Str, 150, "Administratorul \"%s[%i]\" a dat jucatorului \"%s[%i]\" o suma de $%d.", Name, playerid, PlayerName, Player, Moneys );

    SendClientMessageToAll( -1, Str );

    return 1;

}

Ai nevoie de: ZCMD, SSCANF.

Link to comment
Share on other sites

Nu merge ...si cand dau compile arata asta:

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11159) : warning 203: symbol is never used: "givemoney"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

e legat e givemoney :-??

Link to comment
Share on other sites

Am ZCMD dar uite :

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11159) : error 021: symbol already defined: "givemoney"

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11175) : warning 203: symbol is never used: "givemoney"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Link to comment
Share on other sites

Guest PlayON

Am ZCMD dar uite :

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11159) : error 021: symbol already defined: "givemoney"

D:\Documents and Settings\kenzor\Desktop\RSS-windows\gamemodes\RO.pwn(11175) : warning 203: symbol is never used: "givemoney"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

Da ma liniile alea.

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.