[Pedido] Arumando GivePlayerMoney Para GivePlayerGrana
#8

pawn Код:
dcmd_grana(playerid, params[])
{
#pragma unused params
new string[100],Outroplayerid,Dimdim;

if(sscanf(params, "dd", Outroplayerid, Dimdim)) return SendClientMessage(playerid, 0x0000FFAA,"[ INFO ]{FFFFFF} Correto: /grana [ID] [$$$].");
if(!IsPlayerConnected(Outroplayerid)) return SendClientMessage(playerid, 0xFF0000FF, "[ ERROR ]{FFFFFF} Jogador Nгo Conectado.");

format(string, sizeof(string), "Vocк Presenteou O Jogador {FFFF00}%s, {FFFFFF}R$ {FFFF00}%i",NomePlayer(Outroplayerid),Dimdim);
SendClientMessage(playerid, 0xFFFFFFFF, string);
format(string, sizeof(string), "~r~Grana Recebida!!~w~!!!");
GameTextForPlayer(Outroplayerid, string, 2000, 1);
PlayerPlaySound(Outroplayerid, 1057, 0.0, 0.0, 0.0);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
Grana[playerid]+=Dimdim;
return true;
}
pawn Код:
stock NomePlayer(playerid)
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, sizeof(nome));
return nome;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)