- 0
[GF/RP] ajutor /fine
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Mr.LeX2011
am facut si eu comanda "/fine".Ea indeplineste functia de amendarea unui player care da un ad aiurea report aiurea
adminu da "/fine" si ii da amenda uite aici comanda
DAr apare doar.f
""format(string, 256, "~|{FF0000}AdmCmD: {FF0066}%s A Fost Amendat Suma De {CC00FF}%d De Un {00FFCC}Admin|~", giveplayer,money);""
si eu vreau sa apara Si motiv uitati mai jos comanda
[pawn]if(strcmp(cmd, "/fine", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
new playa;
new result;
new money;
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_ORANGE, "~|/fine [iD/NuME]/[suma]|~");
return 1;
}
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
//ConsumingMoney[playa] = 1;
GivePlayerMoneyEx(playa, -money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "~|{FF0000}AdmCmD: {FF0066}%s A Fost Amendat Suma De {CC00FF}%d De Un {00FFCC}Admin|~", giveplayer,money);
ABroadCast( 0x05FAF3FF,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_2RED, "Nu esti autorizat sa folosesti aceasta comanda");
}
}
return 1;
}[/pawn]
4 answers to this question
Recommended Posts