wont be able to use
#1

hey guys i have something that i work on and i have just one problem , this is the sistem

Код HTML:
new EventActiv[MAX_PLAYERS],
	OwnerEvent[MAX_PLAYERS];
CMD:eventuri(playerid)
{
    if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_WHITE, "Trebuie sa fi pe server inainte sa folosesti aceasta comanda.");
    if(PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playerid, COLOR_WHITE, "Nu ai gradul necesar pentru a folosi aceasta comanda.");
    if(OwnerEvent[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti folosi aceasta comanda deoarece nu esti persoana ce a creat Event-ul.");
	ShowPlayerDialog(playerid,DIALOG_EVENTURI,DIALOG_STYLE_LIST, "Event Info: Comenzi Event", "Deagle\nCurse\nUltima masina ramasa\nRazboi cu molotov\nAcorda premiu", "Select","Exit");
	return 1;
}

if(dialogid == DIALOG_EVENTURI)
	{
		if(response)
		{
	  		new stringy[500 + 1],string1[500 + 1],string2[500 + 1],string3[500 + 1],string4[500 + 1],string5[500 + 1];
      		if(listitem == 0)
	 		{
			    EventActiv[playerid] = 1;
			    OwnerEvent[playerid] = 1;
	   			SetPlayerInterior(playerid, 7);
			    SetPlayerVirtualWorld(playerid, 7);
			    PlayerPlaySound(playerid, 1083, 0.0, 0.0, 10.0);
			    SetPlayerPos(playerid, 298.507934, -141.647048, 1004.054748);
			   	format(string1, sizeof(string1), "{FF0000}Informatii Event: {FFFFFF}Salut, aici este eventul {94CD4B}Deagle");
			   	format(string2, sizeof(string2), "{FF0000}Informatii Event: {FFFFFF}La acest event nu poti oferi un premiu mai mic sau mai mare de cat 50.000{94CD4B}$ {FFFFFF}- 500.000{94CD4B}$");
			    format(string3, sizeof(string3), "{FF0000}Informatii Event: {FFFFFF}Te rugam tasteaza {94CD4B}/startgotoevent {FFFFFF}pentru a permite playerilor teleportarea la event");
                format(string4, sizeof(string4), "{FF0000}Informatii Event: {FFFFFF}Nu uita la final trebuie sa opresti eventu asa ca o sa trebuiasca sa scri: {94CD4B}/opreste");
				format(string5, sizeof(string5), "{FF0000}Informatii Event: {FFFFFF}Nerespectarea regulilor scrise mai sus duce la sanctionari si chiar rank down");
				format(stringy, sizeof(stringy), "%s\n%s\n%s\n%s\n%s", string1, string2, string3, string4, string5);
	    		ShowPlayerDialog(playerid, DIALOG_EVENTURI2, DIALOG_STYLE_MSGBOX, "Comenzi Event", stringy,"Back","Exit");
			}
		}
	}
it should make me OwnerEvent but it wont , i can't use the command /eventuri after i select the Deagle from menu or any other pick
Reply
#2

PHP код:
CMD:eventuri(playerid)
{
    if(
gLogged[playerid] == 0) return SendClientMessage(playeridCOLOR_WHITE"Trebuie sa fi pe server inainte sa folosesti aceasta comanda.");
    if(
PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playeridCOLOR_WHITE"Nu ai gradul necesar pentru a folosi aceasta comanda.");
    if(
OwnerEvent[playerid] == 1)
    {
    return 
SendClientMessage(playeridCOLOR_WHITE"Nu poti folosi aceasta comanda deoarece nu esti persoana ce a creat Event-ul.");
    }
    else
    {
    
ShowPlayerDialog(playerid,DIALOG_EVENTURI,DIALOG_STYLE_LIST"Event Info: Comenzi Event""Deagle\nCurse\nUltima masina ramasa\nRazboi cu molotov\nAcorda premiu""Select","Exit");
    }
    return 
1;

Reply
#3

Quote:
Originally Posted by Sunehildeep
Посмотреть сообщение
PHP код:
CMD:eventuri(playerid)
{
    if(
gLogged[playerid] == 0) return SendClientMessage(playeridCOLOR_WHITE"Trebuie sa fi pe server inainte sa folosesti aceasta comanda.");
    if(
PlayerInfo[playerid][pAdmin] >= 1) return SendClientMessage(playeridCOLOR_WHITE"Nu ai gradul necesar pentru a folosi aceasta comanda.");
    if(
OwnerEvent[playerid] == 1)
    {
    return 
SendClientMessage(playeridCOLOR_WHITE"Nu poti folosi aceasta comanda deoarece nu esti persoana ce a creat Event-ul.");
    }
    else
    {
    
ShowPlayerDialog(playerid,DIALOG_EVENTURI,DIALOG_STYLE_LIST"Event Info: Comenzi Event""Deagle\nCurse\nUltima masina ramasa\nRazboi cu molotov\nAcorda premiu""Select","Exit");
    }
    return 
1;

it's still not working, first time i use it works after i select Deagle as example , and then use /eventuri again it say's i am not the owner
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)