[Pedido] Comando de transferкncia de Grana
#6

pawn Code:
YCMD:transferencia(playerid, params[], help)
{
    new targetid, value;
   
    if(sscanf(params, "ud", targetid, value))
        return SendClientMessage(playerid, -1, "* /transferencia [playerid] [quantia]");
       
    if(targetid == INVALID_PLAYER_ID || !IsPlayerConnected(targetid))
        return SendClientMessage(playerid, -1, "* Jogador nгo conectado.");
       
    if(GetPlayerMoney(playerid) < value)
        return SendClientMessage(playerid, -1, "* Vocк nгo tem essa quantia.");
       
    GivePlayerMoney(playerid, -value);
    GivePlayerMoney(targetid, value);
   
    return 1;
}
Reply


Messages In This Thread
Comando de transferкncia de Grana - by Netinho_the_killer - 12.08.2012, 13:07
Re: Comando de transferкncia de Grana - by Panico622 - 12.08.2012, 13:34
Re: Comando de transferкncia de Grana - by Kuddy - 12.08.2012, 14:35
Re: Comando de transferкncia de Grana - by .ThePro - 12.08.2012, 14:54
Re: Comando de transferкncia de Grana - by Netinho_the_killer - 12.08.2012, 17:04
Re: Comando de transferкncia de Grana - by Lуs - 12.08.2012, 17:28
Re: Comando de transferкncia de Grana - by R3S1D3NT1 - 12.08.2012, 21:50
Respuesta: Comando de transferкncia de Grana - by AnonymouSs - 12.08.2012, 21:58
Re: Respuesta: Comando de transferкncia de Grana - by @Riichard - 12.08.2012, 22:10
Re: Respuesta: Comando de transferкncia de Grana - by Lуs - 12.08.2012, 23:23

Forum Jump:


Users browsing this thread: 1 Guest(s)