- 0
Problema event
-
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
ToX1c
Salut am vrut sa fac si eu cand dau /gevent sa apara numele la adminul care a pornit eventu si cand dau /gevent imi apare numele la primul player adica la playerul cu id - 0 cum fac sa apara adminul care a dat.
if(strcmp(cmd, "/gevent", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1 && (gevent == 0) || PlayerInfo[playerid][pHelper] >= 2 && (gevent == 0) || IsPlayerAdmin(playerid) && (gevent == 0)) { gevent = 1; GetPlayerName(playerid, Name, sizeof(Name)); format(string, 256, "{6EF83C}[Mini Event]: Event cu Grenade activat de adminul {FFFFFF} %s ! {6EF83C}(/joingevent) ", giveplayer, sendername, Name); return SendClientMessageToAll(COLOR_GREY, string); } else if (PlayerInfo[playerid][pAdmin] >= 1 && (gevent == 1) || PlayerInfo[playerid][pHelper] >= 2 && (gevent == 1) || IsPlayerAdmin(playerid) && (gevent == 1)) { gevent = 0; new playa; GetPlayerName(playa, giveplayer, sizeof(giveplayer)); format(string, 256, "{6EF83C}[Mini Event]: Event dezactivat de adminul {FFFFFF} %s ! ", giveplayer, sendername, Name); return SendClientMessageToAll(COLOR_GREY, string); } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda !"); } } return 1; }1 answer to this question
Recommended Posts