[Pomoc] Komanda

Započeo [NG | RP] Almir, Decembar 06, 2012, 18:32:51 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta: CLRP
Problem: Ne znam kako da napravim u jednoj komandi vise komandi...Ja sam nesto radio al bude 26 errora
Dio skripte:

Evo stare komande:


if (strcmp(cmdtext, "/cmd", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1429.0780,-882.2170,50.4782)  || PlayerToPoint(5, playerid,1430.6331,-886.3576,34.5491))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 7)
    {
            ShowPlayerDialog(playerid, 1500, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}
//----------
if (strcmp(cmdtext, "/cmd2", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1464.2501,-902.7033,54.5401)  || PlayerToPoint(5, playerid,1467.6423,-900.2625,21.8080))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 8)
    {
            ShowPlayerDialog(playerid, 1501, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}
//----
if (strcmp(cmdtext, "/cmd3", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1537.8843,-841.4370,64.2341)  || PlayerToPoint(5, playerid,1533.7781,-840.1801,42.2407))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 9)
    {
            ShowPlayerDialog(playerid, 1502, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}
//---------
if (strcmp(cmdtext, "/cmd4", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1531.7886,-813.4326,71.7529)  || PlayerToPoint(5, playerid,1531.1542,-812.3262,48.8182))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 10)
    {
            ShowPlayerDialog(playerid, 1503, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}
//--------
if (strcmp(cmdtext, "/cmd5", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1514.1365,-765.8936,55.9885)  || PlayerToPoint(5, playerid,1515.3928,-766.2581,79.8562))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 11)
    {
            ShowPlayerDialog(playerid, 1504, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}
//--------------
if (strcmp(cmdtext, "/cmd6", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1518.6693,-691.9920,74.5209)  || PlayerToPoint(5, playerid,1516.8724,-694.0505,94.4551))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 12)
    {
            ShowPlayerDialog(playerid, 1505, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}
//----------
if (strcmp(cmdtext, "/cmd7", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1460.2124,-633.2717,95.4873)  || PlayerToPoint(5, playerid,1459.2937,-637.1604,72.9284))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 13)
    {
            ShowPlayerDialog(playerid, 1506, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}
//-----
if (strcmp(cmdtext, "/cmd8", true) == 0)
{
        if(PlayerToPoint(7.0, playerid,1248.8516,-803.5940,83.8677)  || PlayerToPoint(5, playerid,1249.9630,-795.7624,56.9484))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 15)
    {
            ShowPlayerDialog(playerid, 1507, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else
{
SendClientMessage(playerid, WHITE, "Nemate kljuceve");
}
}
return 1;
}


Evo sto sam ja radio komandu:

if (strcmp(cmdtext, "/testbc", true) == 0)hasim
{
    if(IsPlayerConnected(playerid))
    {
if(PlayerToPoint(7.0, playerid,1429.0780,-882.2170,50.4782)  || PlayerToPoint(5, playerid,1430.6331,-886.3576,34.5491))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 7)
    {
            ShowPlayerDialog(playerid, 1500, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
            else if(PlayerToPoint(7.0, playerid,1464.2501,-902.7033,54.5401)  || PlayerToPoint(5, playerid,1467.6423,-900.2625,21.8080))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 8)
    {
            ShowPlayerDialog(playerid, 1501, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
           else if(PlayerToPoint(7.0, playerid,1537.8843,-841.4370,64.2341)  || PlayerToPoint(5, playerid,1533.server uklonjen!,-840.1801,42.2407))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 9)
    {
            ShowPlayerDialog(playerid, 1502, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else if(PlayerToPoint(7.0, playerid,1531.7886,-813.4326,71.7529)  || PlayerToPoint(5, playerid,1531.1542,-812.3262,48.8182))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 10)
    {
            ShowPlayerDialog(playerid, 1503, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else if(PlayerToPoint(7.0, playerid,1514.1365,-765.8936,55.9885)  || PlayerToPoint(5, playerid,1515.3928,-766.2581,79.8562))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 11)
    {
            ShowPlayerDialog(playerid, 1504, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else if(PlayerToPoint(7.0, playerid,1518.6693,-691.9920,74.5209)  || PlayerToPoint(5, playerid,1516.8724,-694.0505,94.4551))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 12)
    {
            ShowPlayerDialog(playerid, 1505, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else if(PlayerToPoint(7.0, playerid,1460.2124,-633.2717,95.4873)  || PlayerToPoint(5, playerid,1459.2937,-637.1604,72.9284))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 13)
    {
            ShowPlayerDialog(playerid, 1506, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
else if(PlayerToPoint(7.0, playerid,1248.8516,-803.5940,83.8677)  || PlayerToPoint(5, playerid,1249.9630,-795.7624,56.9484))
        {
            if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 15)
    {
            ShowPlayerDialog(playerid, 1507, DIALOG_STYLE_LIST,"Test","Ulaz\nIzlaz","Uredu","Izlaz");
        }
}
return 1;
}
Poslednja Izmena: Decembar 06, 2012, 18:34:49 POSLE PODNE od BC Aldin Delic

Ovako nekako CMD:tvojcmd(playerid, params[])
    {
    if(PlayerToPoint(7.0, playerid,1537.8843,-841.4370,64.2341)  || PlayerToPoint(5, playerid,1533.server uklonjen!,-840.1801,42.2407))
    if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 9)
    {
if(IsPlayerInRangeOfPoint(playerid, 5, 1537.8843,-841.4370,64.2341))
{
ShowPlayerDialog(playerid, 1502, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
}
}
    else if(PlayerToPoint(7.0, playerid,1531.7886,-813.4326,71.7529)  || PlayerToPoint(5, playerid,1531.1542,-812.3262,48.8182))
    {
if(PlayerInfo[playerid][pAdmin] == 1338||PlayerInfo[playerid][pPhousekey] == 10)
{
howPlayerDialog(playerid, 1503, DIALOG_STYLE_LIST,"Balkan Carbon","Ulaz\nIzlaz","Uredu","Izlaz");
}
}
i onda nastavis