Jump to content
  • 0

pomoc ako udelam hlasovanie


Guest StReeY [Dinti]

Dotaz

8 odpovědí na tuto otázku

Recommended Posts

  • 0

Myslim si ze by to slo pres DCMD, ale nwm nikdy jsem to nedelal an neskousel xD tak cum nak tatkto si to udelej.

dcmd_hlas(playerid, params[])// da prikaz /hlas

{

if(IsPlayerConnected(playerid))

{

if(!strlen(params)) return SendClientMessage(playerid,COLOR_YELLOW, "Použití: /hlas [co]");//barvu si musíte změnit podle sebe

new string[256],jmeno[24];

GetPlayerName(playerid, jmeno, 24);

format(string, sizeof(string), "***Hlasování*** %s (%s)",params, jmeno);

SendClientMessageToAll(COLOR_GREEN, string);//barvu si musíte změnit podle sebe

}

return 1;

}

 

no a pak udelej prikaz /ano , /ne a kdyz da ano tak to prida +1 a kdyz ne tak +1

 

proste jednoduchy, a pak si udelej nejaky timer na kterou dobu by bylo to hlasovani, a pujde to je t lehky.

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...