Jump to content

HITMAN SYSTEM


Daffy

Recommended Posts

HITMAN SYSTEM -> NENALEZEN -> PROTO HO SEM DAVAM :d ...KDYBY HAZELO ERRORY TAK PISTE ...

 

NENI TO Z MOJE PALICE ! ...ALE MAM TO V MODE TAK VAM TO SEM VYTAHNU ,,,A Z PAWNOBOXU TO 100ˇ% NENI NARUTO !!!

 

 

//------------------------------------------------------------------H I T M A N-------------------------------------------------------------------------------

if(strcmp(cmd, "/hitman", true) == 0)
{
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "[ ! ]: /hitman [iD] [ciastka]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "[ ! ]: /hitman [iD] [ciastka]");
return 1;
}
moneys = strval(tmp);
if(moneys > GetPlayerMoney(playerid))
{
SendClientMessage(playerid, COLOR_RED, "Moneeeyyy!");
return 1;
}
if(moneys < 1)
{
SendClientMessage(playerid, COLOR_YELLOW, ":) no no .");
return 1;
}
if(IsPlayerConnected(giveplayerid)==0)
{
SendClientMessage(playerid, COLOR_RED, "Hrac neni na serveru.");
return 1;
}
bounty[giveplayerid]+=moneys;
GivePlayerMoney(playerid, 0-moneys);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Na hrace %s byla vypsana odmena %d $ hracem %s (celkem: %d $).", giveplayer, moneys, sendername, bounty[giveplayerid]);
SendClientMessageToAll(COLOR_ORANGE, string);
format(string, sizeof(string), "Vypsal jsi odměnu $%d na hlavu hrače %s (id: %d).", moneys, sendername, playerid);
SendClientMessage(giveplayerid, COLOR_RED, string);
return 1;
}

if(strcmp(cmd, "/bounty", true) == 0)
{
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "[ ! ]: /bounty [iD]");
return 1;
}
giveplayerid = strval(tmp);

if(IsPlayerConnected(giveplayerid)) {
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "Hrac %s (id: %d) ma $%d za jeho hlavu.", giveplayer,giveplayerid,bounty[giveplayerid]);
SendClientMessage(playerid, COLOR_YELLOW, string);
}
else
{
SendClientMessage(playerid, COLOR_RED, "Hráč neexistuje!");
}
return 1;
}

if(strcmp(cmd, "/bounties", true) == 0)
{
new x;
SendClientMessage(playerid, COLOR_GREEN, "Vypsane odměny:");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && bounty[i] > 0)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s%s(%d): $%d", string,giveplayer,i,bounty[i]);

x++;
if(x > 3)
{
SendClientMessage(playerid, COLOR_YELLOW, string);
x = 0;
format(string, sizeof(string), " ");
}
else
{
format(string, sizeof(string), "%s, ", string);
}
}
}
if(x <= 3 && x > 0)
{
string[strlen(string)-2] = '.';
SendClientMessage(playerid, COLOR_YELLOW, string);
}
return 1;
}

Link to comment
Share on other sites

ale on to tam napsal naturo chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??chapes ?? chapers ??

 

 

 

 

 

 

 

asi ne ...

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...