06.10.2016, 21:15
hey guys i have a command and i want to set a function for everyone
why is not setting
to everyone ? but only me
Код HTML:
CMD:minercrash(playerid,params[]) { if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_ERROR, "Tu nu esti logat si nu poti sa folosesti aceasta comanda!"); if(PlayerInfo[playerid][pAdmin] >= 6) { CreateMinerCrashObjects(); SendClientMessage(playerid, COLOR_WHITE, "Esti putin ametit de la explozie si respiri foarte greu."); SendClientMessage(playerid, COLOR_WHITE, "A fost deja trimis un mesaj catre unitati, nu intra in panica."); CreateExplosion(-672.5913,-2000.2786,23.6414, 13, 15.0); CreateExplosion(-672.5913,-2000.2786,23.6414, 12, 15.0); CreateExplosion(-672.5913,-2000.2786,23.6414, 9, 15.0); CreateExplosion(-667.4628,-1993.3436,24.6633, 13, 15.0); CreateExplosion(-667.4628,-1993.3436,24.6633, 12, 15.0); CreateExplosion(-667.4628,-1993.3436,24.6633, 9, 15.0); CreateExplosion(-677.7322,-1993.3490,24.3457, 13, 15.0); CreateExplosion(-677.7322,-1993.3490,24.3457, 12, 15.0); CreateExplosion(-677.7322,-1993.3490,24.3457, 9, 15.0); format(gString, sizeof(gString), "NR Bot: Anunt global, mina de gradul 2 s-a prabusit, ramaneti pe fir pentru mai multe detali."); SendClientMessageToAll(COLOR_NEWS, gString); format(gString, sizeof(gString), "NR Bot: Puteti fi la curent cu detalile urmariti /canal 1"); SendClientMessageToAll(COLOR_NEWS, gString); format(gString, sizeof (gString), "(HQ) Catre toate unitatile, mina de gradul 2 s-a prabusit toate unitatile din zona sa se prezinta la locul prabusiri /gps > Mina Gradu 2"); SendFactionMessage(1, COLOR_RADIO, gString); SendFactionMessage(2, COLOR_RADIO, gString); minerbox = Create3DTextLabel("/extinctor\nPentru a stinge focul", 0xFFFFFFFF, -681.9440,-1971.0916,22.6360, 10.0, 0, 0); PlayAudioStreamForPlayer(playerid, "http://k003.kiwi6.com/hotlink/oc1qzibmw0/Siren_TwinPix.mp3", -672.5913,-2000.2786,23.6414, 100, 1); foreach(new i : Player) { if(gLogged[i] == 0) continue; MinerCrashSistem[playerid] = 1; } } return 1; }
Код HTML:
MinerCrashSistem[playerid] = 1;