CMD:licitatie(playerid,params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
if ((noooc) && PlayerInfo[playerid][pAdmin] < 8) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Nu ai acces la aceasta comanda");
new text[250],string[250],sendername[25];
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
if(sscanf(params, "s[250]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /licitatie [ nume biz ]");
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{7901AF}(( {FFFFFF}Licitatie {FFFFFF}Biz-ul ( %s ) se liciteaza foloseste /licitez pentru a licita {7901AF}))", text);
OOCOff(COLOR_OOC,string);
licitatie = 1;
printf("%s", string);
}
return 1;
}
CMD:licitez(playerid,params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
new money;
if(licitatie == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Nu este nici o licitatie activata.");
new string[250],sendername[25];
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
if(sscanf(params, "i",money)) return SendClientMessage(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /licitez [ suma ]");
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{a9c4e4}Licitatie: %s ofera {ee5555}$%s.{a9c4e4}Ofera cineva mai mult ?{ee5555}/licitez .", sendername,FormatNumber(money));
OOCOff(COLOR_OOC,string);
SendClientMessage(playerid, COLOR_LIGHTRED,"Daca nu ai aceasta suma de bani vei primi warn.");
licitatie = 1;
printf("%s", string);
}
return 1;
}
am Acest sistem de licitatie dar nu am comanda de al opri , mil puteti modifica ca cand dai /licitez sa poti da dor mai mult ca celalanta persoana.
Question
Mihail.
CMD:licitatie(playerid,params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
if ((noooc) && PlayerInfo[playerid][pAdmin] < 8) return SendClientMessage(playerid, COLOR_WHITE, "{FFB870}Nu ai acces la aceasta comanda");
new text[250],string[250],sendername[25];
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
if(sscanf(params, "s[250]",text)) return SendClientMessage(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /licitatie [ nume biz ]");
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{7901AF}(( {FFFFFF}Licitatie {FFFFFF}Biz-ul ( %s ) se liciteaza foloseste /licitez pentru a licita {7901AF}))", text);
OOCOff(COLOR_OOC,string);
licitatie = 1;
printf("%s", string);
}
return 1;
}
CMD:licitez(playerid,params[])
{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(IsPlayerConnected(playerid))
{
new money;
if(licitatie == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Nu este nici o licitatie activata.");
new string[250],sendername[25];
if(PlayerInfo[playerid][pMuted] == 1)
{
format(string, sizeof(string), "You can not speak, you have been silenced for %d seconds.",PlayerInfo[playerid][pMuteTime]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
return 1;
}
if(sscanf(params, "i",money)) return SendClientMessage(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /licitez [ suma ]");
GetPlayerName(playerid,sendername,sizeof(sendername));
format(string, sizeof(string), "{a9c4e4}Licitatie: %s ofera {ee5555}$%s.{a9c4e4}Ofera cineva mai mult ?{ee5555}/licitez .", sendername,FormatNumber(money));
OOCOff(COLOR_OOC,string);
SendClientMessage(playerid, COLOR_LIGHTRED,"Daca nu ai aceasta suma de bani vei primi warn.");
licitatie = 1;
printf("%s", string);
}
return 1;
}
am Acest sistem de licitatie dar nu am comanda de al opri , mil puteti modifica ca cand dai /licitez sa poti da dor mai mult ca celalanta persoana.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.