Jump to content

zebrat [id]


Recommended Posts

Takže do OnPlayerCommandText dáme

dcmd(zebrat,6,cmdtext);

 

A někam do modu ,ale ne někam do publicu !!

dcmd_zebrat(playerid,params[])
{
new id = strval(params);
new string[256];
if (!strlen(params)) return SendClientMessage(playerid,  COLOR_ORANGE, "Použití: /zebrat [id]");
else if(!IsPlayerConnected(id)) return SendClientMessage(playerid,  COLOR_ORANGE, "Toto [id] není připojený!");
else if(iPlayerRole[playerid] != 15) return  SendClientMessage(playerid,  COLOR_ORANGE, "Nejsi Bezdomovec!");
else if(playerid == id) return  SendClientMessage(playerid,  COLOR_ORANGE, "Nemůžeš žebrat od sebe!");
format(string, sizeof(string), "Bezdomovec %s žebrá peníze od hráče %s !", PlayerName(playerid), PlayerName(id));
SendClientMessageToAll(COLOR_ORANGE, string);
return 1;
}

Link to comment
Share on other sites

  • 3 months later...
":31gjd8ro]vobec si to nevysvetlil :thumbdown: lamy nepochopia

 

Já zase nejsem taková lama ja už možná ani lama nejsem :d a chápu to, do modu to nechci je to trapný když tak jsi to udelam ale peknej TuT :clap:

Link to comment
Share on other sites

  • 5 weeks later...
  • 3 weeks later...

tohle uz je davno uzavreny tema...akorat ho "Pan" Sayels zase otavrel...a ty jak koukam jdes v jeho stopach...vykaslete se na zbytecny spamovani a zakladani topicu o nicem....myslim ze to udela radost vsem

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...