01.05.2018, 20:29
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;
}