[pomoc] eventi

Započeo [PAL]Emir, Septembar 27, 2011, 19:18:12 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:FG
Opis priblema : kada ukucam /eventi otvore mi se eventi i i kada odem na cross race i /join i spawna me na cross a kad hocu na ostale i ukucam /join i pise mi taj event jos nije poceo

Valjda ce vam ovo pomoci

if(strcmp(cmd, "/eventi", true) == 0)
{
if(IsPlayerConnected(playerid))
    {
if (PlayerInfo[playerid][pAdmin] >= 2)
    {
          ShowPlayerDialog(playerid,3000,DIALOG_STYLE_LIST ,"Eventi","Mount Chillad Race\nSF Motorsports Track\nFlat Rock Speedway\nLs Speedway\nBeach Hell Race\nMonster Ring\nSurvivor\nSkakanje sa padobranom\nPort za Los Santos","Odaberi","Odustani");
        }
        }
        return 1;
    }


if(strcmp(cmd, "/join", true) == 0)
{
if(IsPlayerConnected(playerid))
    {
          ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom\nPort za Los Santos\nNovi Race","Odaberi","Odustani");
        }
        return 1;
    }

daj i ono sto ide od tih komandi pod ondialogresponse
Vratio sam se ponovo ocekjute novi server...

if(dialogid == 3001)
{
    if(response)
    {
new Float:slx, Float:sly, Float:slz;
    switch(listitem)
    {
        case 0://Mounth Chillad Race
        {
if(mchilladpocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
    return 1;
}
else
{
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
SetPlayerPos(playerid, -2372.4692,-2180.5385,33.45);
SetPlayerRaceCheckpoint(playerid,0,-2369.4689,-2193.0871,33.0156,-2284.0405,-2155.2575,49.2413,6);
RCP[playerid] = 11;
}
        }
        case 1://SF Motorsports Track
        {
if(sftrackpocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
    return 1;
}
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
SetPlayerPos(playerid, -1239.5798,-580.1984,14.1484);
SetPlayerRaceCheckpoint(playerid,0,-1326.9548,-598.6463,13.7129,-1500.7194,-594.1589,13.7145,6);
    RCP[playerid] = 1;
        }
        case 2://Flat Rock Speedway
        {
if(flatrockpocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
    return 1;
}
        }
        case 3://Ls Speedway
        {
if(lsspeedwaypocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
    return 1;
}
        }
        case 4://Beach Hell Race
        {
if(bhellpocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
return 1;
}
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
SetPlayerPos(playerid, -2954.1628,467.5646,4.9140);
SafeGivePlayerWeapon(playerid,29,300);
SetPlayerRaceCheckpoint(playerid,0,-2933.0322,380.2134,3.2609,-2925.0456,-558.9098,3.9200,10);
    RCP[playerid] = 44;
        }
        case 5://Monster Ring
        {
if(monsterpocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
    return 1;
}
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
SetPlayerPos(playerid, -898.2783,3634.5217,1.3383);
        }
        case 6://Survivor
        {
if(survivorpocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
    return 1;
}
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
SetPlayerPos(playerid, -2152.6340,3148.7612,4.0060);
}
        case 7://Skakanje sa padobranom
        {
if(padobranpocetak != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Taj event nije jos poceo!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom","Odaberi","Odustani");
    return 1;
}
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
SetPlayerPos(playerid, 1539.5164,-1353.4006,329.4650);
SafeGivePlayerWeapon(playerid,46,1);
        }
        case 8://Port za LS
        {
if(aktivirajport != 1)
{
    SendClientMessage(playerid,COLOR_WHITE,"Port jos nije aktiviran!");
    ShowPlayerDialog(playerid,3001,DIALOG_STYLE_LIST ,"Eventi","Cross Race\nAero Moto Race\nAero Car Race\nMonster Race\nBeach Hell Race\nSurvivor\nSkakanje sa padobranom\nPort za Los Santos","Odaberi","Odustani");
    return 1;
}
GetPlayerPos(playerid, slx, sly, slz);
SetPlayerPos(playerid, slx, sly, slz+5);
SetPlayerPos(playerid, 1189.2260742188,-883.84887695313,42.76);
        }
    }
    }
}

Daj nam jedan pre znaci if(dialogid == 3000)
Poslednja Izmena: Septembar 27, 2011, 22:24:26 POSLE PODNE od MicroD