- 0
problema sistem votekick onplayerkeystatechage
-
Similar Content
-
- 0 replies
- 127 views
-
- 0 replies
- 181 views
-
- 5 replies
- 740 views
-
- 5 replies
- 377 views
-
- 11 replies
- 376 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
KingZone
Problema intalnita (descriere):problema functie OnPlayerKeyStateChange sistem vote-kick
Ero(area / rile) / warning-(ul / urile): linia 18300
if(PRESSED(KEY_YES)) {
LINIA 18311
if(PRESSED(KEY_NO)) {
Liniile de cod / sursa / script-ul(obligatoriu):
////////OnPlayerKeyStateChange///// /////////////////////////////////// if(Active == 1) { if(PRESSED(KEY_YES)) { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid, CL, "You voted to kick that player {FF0000}[YES]"); Active = 0; Close(); YesPlayers++; format(string, sizeof(string), "{FF0000}%s {FFCC33}voted for.", name); SendClientMessageToAll(-1, string); } if(PRESSED(KEY_NO)) { new string[128], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); SendClientMessage(playerid, CL, "You voted to don't kick that player {FF0000}[NO]"); Active = 0; Close(); NoPlayers++; format(string, sizeof(string), "{FF0000}%s {FFCC33}voted aganist.", name); SendClientMessageToAll(-1, string); } }
Imagini / Video (optional):........... -----
Ati incercat sa rezolvati singur?: da dar nam reusit
EDITARE
Link to comment
Share on other sites
6 answers to this question
Recommended Posts