12.08.2012, 17:28
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;
}