12.08.2012, 21:50
(
Last edited by R3S1D3NT1; 12/08/2012 at 10:25 PM.
)
PHP Code:
CMD:transferir(playerid, params[]){
new Grana, pname[45], gname[45],Xd;
GetPlayerName(playerid, gname, sizeof(pname));
GetPlayerName(playerid, pname, sizeof(pname));
if(sscanf(params, "dd", Xd, Grana)) return SendClientMessage(playerid, -1, "Use: /Transferir [ID]);
if(GivePlayerMoney < Grana) return SendClientMessage(playerid, -1, "Erro: Voce Nгo Tem Essa Grana");
GivePlayerMoney(playerid, -Grana);
GivePlayerMoney(Xd, Grana);
format(string, sizeof(string), "Voce Transferiu Grana Para O Jogador %s", gname);
SendClientMessage(playerid, -1, string);
format(string, sizeof(string), "Voce Recebeu Grana Do Jogador %s", pname);
SendClientMessage(Xd, -1, string);
return 1;
}