Help convert command to ZCMD
#4

Neat.
pawn Код:
CMD:pcarsell(playerid, params[])
{
    new sellplayerid, preis;
    if(sscanf(params, "ud", sellplayerid, preis))return SendClientMessage(playerid, 0xFFFFFFAA, "/pcarsell [playerid] [Geld]");
    if(preis < 1)return SendClientMessage(playerid, 0xFFFFFFAA, "Bloga kaina.");
    if (Carlist[playerid][Typ]==-1)return SendClientMessage(playerid, 0xFFFFFFAA, "Neturite automobilio!");
    if (!IsPlayerConnected(sellplayerid))return SendClientMessage(playerid, 0xFFFFFFAA, "Ћaidejas atsijunges.");
    bietetAn[sellplayerid][0]=playerid;
    bietetAn[sellplayerid][1]=preis;
    new playername[MAX_PLAYER_NAME];
    new sellplayername[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(playerid,playername,sizeof(playername));
    GetPlayerName(sellplayerid,sellplayername,sizeof(sellplayername));
    format(string,128,"Ћaidejui %s siulote automobili uћ %i ",sellplayername,preis);
    SendClientMessage(playerid, 0xFFFFFFAA, string);
    SendClientMessage(playerid, 0xFFFFFFAA, "Kad atљaukti pardavime raљykite /atsaukti.");
    format(string,128,"%s siulo automobili %s uћ $%i .",playername,Kaufliste[Carlist[playerid][Typ]][Name],preis);
    SendClientMessage(sellplayerid, 0xFFFFFFAA, string);
    SendClientMessage(sellplayerid, 0xFFFFFFAA, "Jeigu jums tenkina suma raљykite /priimti.");
    return 1;
}
Reply


Messages In This Thread
Help convert command to ZCMD - by EdvinasStudio - 29.04.2018, 22:40
Re: Help convert command to ZCMD - by UFF - 30.04.2018, 04:16
Re: Help convert command to ZCMD - by EdvinasStudio - 01.05.2018, 20:16
Re: Help convert command to ZCMD - by Flashhiee - 01.05.2018, 20:29

Forum Jump:


Users browsing this thread: 3 Guest(s)