- 0
problema sistem votekick onplayerkeystatechage
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
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); } }
Edited by KingZoneImagini / Video (optional):........... -----
Ati incercat sa rezolvati singur?: da dar nam reusit
EDITARE
6 answers to this question
Recommended Posts