SA-MP Forums Archive
Commands Help... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Commands Help... (/showthread.php?tid=135132)



Commands Help... - [MWR]Blood - 19.03.2010

I am making a new GameMode with my friend.I made more commands and teleports, but none of them work.For example: I type /cmds and nothing happens.It doesn't even send me a message like unknown command.Pls help :S


Re: Commands Help... - Virtual1ty - 19.03.2010

Maybe you are missing a closing, or opening brackets somewhere in the script? ( {, })
Check your code for errors, or post a piece of your code, where you think the errors are
so we can help you. With no code to look at I'm sure nobody will be able to help you.


Re: Commands Help... - Micko9 - 19.03.2010

Quote:
Originally Posted by ikarus
I am making a new GameMode with my friend.I made more commands and teleports, but none of them work.For example: I type /cmds and nothing happens.It doesn't even send me a message like unknown command.Pls help :S
hmm show us the commands part... or if you already figured it good luck !


Re: Commands Help... - [MWR]Blood - 19.03.2010

Here's the code:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{

if(strcmp(cmdtext,"/fix",true)==0)
{
if(GetPlayerMoney(playerid) < 3500)
{
SendClientMessage(playerid,COLOR_RED,"You haven't enough money!You need $3500 for fix your car!");
return 1;
}
new vehicleid=GetPlayerVehicleID(playerid);
RepairVehicle(vehicleid);
SendClientMessage(playerid,COLOR_GREEN,"Your car has been fixed for $3500!Enjoy!");
GivePlayerMoney(playerid,-3500);
return 1;
}
if ( strcmp ( cmdtext , "/flip", true)==0)
{
new State=GetPlayerState(playerid);
if (IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
new VehicleID, Float:Angle, Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
VehicleID = GetPlayerVehicleID(playerid);
GetVehicleZAngle(VehicleID, Angle);
SetVehiclePos(VehicleID, X, Y, Z);
SetVehicleZAngle(VehicleID, Angle);



SendClientMessage(playerid, COLOR_GREEN, "Your vehicle has been flipped!");
}
return 1;
}
if ( strcmp ( cmdtext , "/lock", true)==0)
{
if (IsPlayerInAnyVehicle(playerid))
{
new State;
State=GetPlayerState(playerid);
if (State!=PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, 0x6ba500ff, "Sorry, only the driver can lock the doors...");
return 1;
}
new i;
for(i=0;i<MAX_PLAYERS;i++)
{
if (i != playerid)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
}
}
SendClientMessage(playerid, COLOR_RED, "Your vehicle has been locked!");
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerPlaySound(playerid, 1056, X, Y, Z);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You aren't in a vehicle!");
}
return 1;
}
if ( strcmp ( cmdtext , "/unlock", true)==0)
{
if (IsPlayerInAnyVehicle(playerid))
{
new State;
State=GetPlayerState(playerid);
if (State!=PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, 0x6ba500ff, "Only driver can unlock or lock the car doors.");
return 1;
}

new i;
for(i=0;i<MAX_PLAYERS;i++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
}
SendClientMessage(playerid, 0x6ba500ff,"Your vehicle has been unlocked.");
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
PlayerPlaySound(playerid, 1057, X, Y, Z);
}
else
{
SendClientMessage(playerid, 0x6ba500ff, "You are not in a vehicle.");
}
return 1;
}
if(strcmp(cmdtext,"/rules", true) ==0 )
{
ShowPlayerDialog(playerid,Dialog_Rules,0,"Server Rules","1.Do not use Hacks / Cheats.\n2.Do not spam the chat.\n3.Respect the people in the server, no insulting or swearing.\n4.Do not pretend to be admin.\n5.Do not advertise other servers here.","Okay","Cancel");
return 1;
}

if(strcmp(cmdtext,"/cmds", true) == 0)
{
ShowPlayerDialog(playerid,Dialog_Commands,0,"Server Commands","Vehicle: /fix /flip /lock /unlock /tune\nGeneral: /teles /cmds /credits /rules","Okay","Cancel");
return 1;
}

    if(strcmp(cmdtext, "/teles", true) == 0) {

    SendClientMessage(playerid,0xAA3333AA," ");
    SendClientMessage(playerid,0xAA3333AA,"====================Server Teleports 1========================");
    SendClientMessage(playerid,0x33AA33AA,"DRIFT PLACES: /drift1 , /drift2 , /drift3 , /drift4 , /drift5 , /drift6 , /drift7 , /drift8 , /drift9 , /drift10 , /drift11 ;");
    SendClientMessage(playerid,0x33AA33AA,"DRIFT CIRCLES: /driftcircle1");
    SendClientMessage(playerid,0x33AA33AA,"DRAG PLACES: /drag1 , /drag2 , /drag3 ;");
    return 1;
    }
    if(strcmp(cmdtext, "/credits", true) == 0) {
    ShowPlayerDialog(playerid,Dialog_Credits,0,"Server Credits","Server Hard Scripter: Ikarus\nServer Mapper:ExtremE_StunteR\nThank you for reading credits!\nHave fun on our server!","Okay","Cancel");
    return 1;
    }
    if(strcmp(cmdtext, "/help", true) == 0) {
    SendClientMessage(playerid,0xAA3333AA," ");
    SendClientMessage(playerid,0xAA3333AA,"====================Welcome to Racers/Drifters Server This is Help Command========================");
    SendClientMessage(playerid,0xD8D8D8FF,"Type /commands or /cmds to see list of all commands.");
    SendClientMessage(playerid,0xD8D8D8FF,"Type /help to see useful things.");
    SendClientMessage(playerid,0xD8D8D8FF,"Type /teles to see list of teleports.");
    SendClientMessage(playerid,0xD8D8D8FF,"Type /dm to see list of DeathMatch Zones.");
    SendClientMessage(playerid,0xD8D8D8FF,"We update server with new objects , places every day!");
    SendClientMessage(playerid,0xD8D8D8FF,"Hope you will like it - Have Fun with Racers N Drifters.");
    SendClientMessage(playerid,0xD8D8D8FF,"Type /tune to tune your car.");
    SendClientMessage(playerid,0xD8D8D8FF,"Type /credits to see credits of server.");
    SendClientMessage(playerid,0xD8D8D8FF,"Type /cars to spawn car - Example /elegy.");
    return 1;
    }
    if (strcmp("/cars", cmdtext, true, 10) == 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"You need car ?");
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"Type /elegy , /nrg , /sultan , /turismo , /bmx .");
        return 1;
    }
    if (strcmp("/therace", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid,833.5051,-1981.1245,191.9546);
        return 1;
    }
    if (strcmp("/drift1", cmdtext, true, 10) == 0)
    {
        SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
        SendClientMessage(playerid,0x33AAAA33,"Welcome to Drift Place 1 --- by ExtremE_StunteR");
        return 1;
    }
    if (strcmp("/drift2", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 2 --- by ExtremE_StunteR");
        return 1;
    }
    if (strcmp("/drift3", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 3 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drift4", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-1056.5476,-1353.2755,129.9260);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 4 --- by ExtremE_StunteR");
        return 1;
    }
    if (strcmp("/drift5", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,2221.7561,1962.5647,31.7797);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 5 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drift6", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,1148.0913,2179.3987,10.8203);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 6 --- by ExtremE_StunteR");
        return 1;
    }
    if (strcmp("/drift7", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-767.6177,2751.4990,45.7734);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 7 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drift8", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-2135.2207,918.6221,79.8516);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 8 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drift9", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-2699.5088,584.5812,15.8154);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 9 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drift10", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-2412.5579,-604.6044,132.5625);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 10 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drift11", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-715.3802,-72.8116,69.0316);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 11 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/driftcircle1", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-2692.8047,393.9262,4.6641);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Circle 1 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/driftcircle2", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,-2107.8701,-827.4761,32.1719);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Circle 2 --- by ExtremE_StunteR");
        return 1;
    }
    if (strcmp("/drag1", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,1426.4360,1193.6797,10.6719);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 1 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drag2", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,1478.1963,1209.7926,10.8203);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 2 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drag3", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,1037.2848,-2309.5500,13.0938);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 3 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drag4", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,2922.1399,-1640.1906,14.0503);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 4 --- by ExtremE_StunteR");
      return 1;
    }
    if (strcmp("/drag5", cmdtext, true, 10) == 0)
    {
      SetPlayerPos(playerid,1796.8032,2257.4338,5.1961);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 5 --- by ExtremE_StunteR");
      return 1;
    }
        if (strcmp("/nrg", cmdtext, true, 10) == 0)
        {
            new vehicleid;
            new Float:X,Float:Y,Float:Z,Float:Angle;
            GetPlayerPos(playerid,X,Y,Z);
            GetPlayerFacingAngle(playerid,Angle);
            GetPlayerVehicleID(playerid);
            CreateVehicle(522,X,Y,Z,Angle,-1,-1,600);
            PutPlayerInVehicle(playerid, vehicleid, 1);
            return 1;
        }
        if (strcmp("/elegy", cmdtext, true, 10) == 0)
        {
            new vehicleid;
            new Float:X,Float:Y,Float:Z,Float:Angle;
            GetPlayerPos(playerid,X,Y,Z);
            GetPlayerFacingAngle(playerid,Angle);
            GetPlayerVehicleID(playerid);
            CreateVehicle(562,X,Y,Z,Angle,-1,-1,600);
            PutPlayerInVehicle(playerid, vehicleid, 1);
            return 1;
        }
        if (strcmp("/sultan", cmdtext, true, 10) == 0)
        {
            new vehicleid;
            new Float:X,Float:Y,Float:Z,Float:Angle;
            GetPlayerPos(playerid,X,Y,Z);
            GetPlayerFacingAngle(playerid,Angle);
            GetPlayerVehicleID(playerid);
            CreateVehicle(560,X,Y,Z,Angle,-1,-1,600);
            PutPlayerInVehicle(playerid, vehicleid, 1);
            return 1;
        }
        if (strcmp("/bmx", cmdtext, true, 10) == 0)
        {
            new vehicleid;
            new Float:X,Float:Y,Float:Z,Float:Angle;
            GetPlayerPos(playerid,X,Y,Z);
            GetPlayerFacingAngle(playerid,Angle);
            GetPlayerVehicleID(playerid);
            CreateVehicle(481,X,Y,Z,Angle,-1,-1,600);
            PutPlayerInVehicle(playerid, vehicleid, 1);
            return 1;
        }
        if (strcmp("/turismo", cmdtext, true, 10) == 0)
        {
            new vehicleid;
            new Float:X,Float:Y,Float:Z,Float:Angle;
            GetPlayerPos(playerid,X,Y,Z);
            GetPlayerFacingAngle(playerid,Angle);
            GetPlayerVehicleID(playerid);
            CreateVehicle(451,X,Y,Z,Angle,-1,-1,600);
            PutPlayerInVehicle(playerid, vehicleid, 1);
            return 1;
        }
    return 1;
}

But I don't think the problem is here...


Re: Commands Help... - Virtual1ty - 19.03.2010

Quote:
Originally Posted by ikarus
Here's the code:
...

But I don't think the problem is here...
Dude, that's one seriously not indented code, indent it properly, although I have
not found any errors too, check your FILTERSCRIPTS ( if you are using any), there
might be error's | or conflicts there.

Edit: actually I have found a missing closing bracket ({), in the "lock" command.
So, yes i do strongly encourage you to look through your code for any mistakes.
Edit2: if you want that code indented, here I have done, meh I have nothing to do, so
I might aswell do something good.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/fix", true) == 0)
    {
        if(GetPlayerMoney(playerid) < 3500)
        {
            SendClientMessage(playerid,COLOR_RED,"You haven't enough money!You need $3500 for fix your car!");
            return 1;
        }  
        new vehicleid=GetPlayerVehicleID(playerid);
        RepairVehicle(vehicleid);
        SendClientMessage(playerid,COLOR_GREEN,"Your car has been fixed for $3500!Enjoy!");
        GivePlayerMoney(playerid,-3500);
        return 1;
    }
   
    if(strcmp(cmdtext, "/flip", true) == 0)
    {
        new State=GetPlayerState(playerid);
        if (IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
        {
            new VehicleID, Float:Angle, Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            VehicleID = GetPlayerVehicleID(playerid);
            GetVehicleZAngle(VehicleID, Angle);
            SetVehiclePos(VehicleID, X, Y, Z);
            SetVehicleZAngle(VehicleID, Angle);
            SendClientMessage(playerid, COLOR_GREEN, "Your vehicle has been flipped!");
        }
        return 1;
    }
    if(strcmp(cmdtext, "/lock", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new State;
            State=GetPlayerState(playerid);
            if(State!=PLAYER_STATE_DRIVER)
            {
                SendClientMessage(playerid, 0x6ba500ff, "Sorry, only the driver can lock the doors...");
                return 1;
            }
            new i;
            for(i=0;i<MAX_PLAYERS;i++)
            {
                if(i != playerid)
                {
                    SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
                }
            }
            SendClientMessage(playerid, COLOR_RED, "Your vehicle has been locked!");
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            PlayerPlaySound(playerid, 1056, X, Y, Z);
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED, "You aren't in a vehicle!");
        }
        return 1;
    }  
    if(strcmp(cmdtext, "/unlock", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new State;
            State=GetPlayerState(playerid);
            if(State!=PLAYER_STATE_DRIVER)
            {
                SendClientMessage(playerid, 0x6ba500ff, "Only driver can unlock or lock the car doors.");
                return 1;
            }
            new i;
            for(i=0;i<MAX_PLAYERS;i++)
            {
                SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
            }
            SendClientMessage(playerid, 0x6ba500ff,"Your vehicle has been unlocked.");
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            PlayerPlaySound(playerid, 1057, X, Y, Z);
        }
        else
        {
            SendClientMessage(playerid, 0x6ba500ff, "You are not in a vehicle.");
        }
        return 1;
    }
    if(strcmp(cmdtext, "/rules", true) == 0)
    {
        ShowPlayerDialog(playerid,Dialog_Rules,0,"Server Rules","1.Do not use Hacks / Cheats.\n2.Do not spam the chat.\n3.Respect the people in the server, no insulting or swearing.\n4.Do not pretend to be admin.\n5.Do not advertise other servers here.","Okay","Cancel");
        return 1;
    }

    if(strcmp(cmdtext, "/cmds", true) == 0)
    {
        ShowPlayerDialog(playerid,Dialog_Commands,0,"Server Commands","Vehicle: /fix /flip /lock /unlock /tune\nGeneral: /teles /cmds /credits /rules","Okay","Cancel");
        return 1;
    }

    if(strcmp(cmdtext, "/teles", true) == 0)
    {
        SendClientMessage(playerid,0xAA3333AA," ");
        SendClientMessage(playerid,0xAA3333AA,"====================Server Teleports 1========================");
        SendClientMessage(playerid,0x33AA33AA,"DRIFT PLACES: /drift1 , /drift2 , /drift3 , /drift4 , /drift5 , /drift6 , /drift7 , /drift8 , /drift9 , /drift10 , /drift11 ;");
        SendClientMessage(playerid,0x33AA33AA,"DRIFT CIRCLES: /driftcircle1");
        SendClientMessage(playerid,0x33AA33AA,"DRAG PLACES: /drag1 , /drag2 , /drag3 ;");
        return 1;
    }
    if(strcmp(cmdtext, "/credits", true) == 0)
    {
        ShowPlayerDialog(playerid,Dialog_Credits,0,"Server Credits","Server Hard Scripter: Ikarus\nServer Mapper:ExtremE_StunteR\nThank you for reading credits!\nHave fun on our server!","Okay","Cancel");
        return 1;
    }
    if(strcmp(cmdtext, "/help", true) == 0)
    {
        SendClientMessage(playerid,0xAA3333AA," ");
        SendClientMessage(playerid,0xAA3333AA,"====================Welcome to Racers/Drifters Server This is Help Command========================");
        SendClientMessage(playerid,0xD8D8D8FF,"Type /commands or /cmds to see list of all commands.");
        SendClientMessage(playerid,0xD8D8D8FF,"Type /help to see useful things.");
        SendClientMessage(playerid,0xD8D8D8FF,"Type /teles to see list of teleports.");
        SendClientMessage(playerid,0xD8D8D8FF,"Type /dm to see list of DeathMatch Zones.");
        SendClientMessage(playerid,0xD8D8D8FF,"We update server with new objects , places every day!");
        SendClientMessage(playerid,0xD8D8D8FF,"Hope you will like it - Have Fun with Racers N Drifters.");
        SendClientMessage(playerid,0xD8D8D8FF,"Type /tune to tune your car.");
        SendClientMessage(playerid,0xD8D8D8FF,"Type /credits to see credits of server.");
        SendClientMessage(playerid,0xD8D8D8FF,"Type /cars to spawn car - Example /elegy.");
        return 1;
    }
    if(strcmp(cmdtext, "/cars", true) == 0)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"You need car ?");
        SendClientMessage(playerid, COLOR_LIGHTBLUE,"Type /elegy , /nrg , /sultan , /turismo , /bmx .");
        return 1;
    }
    if(strcmp(cmdtext, "/therace", true) == 0)
    {
        SetPlayerPos(playerid,833.5051,-1981.1245,191.9546);
        return 1;
    }
    iif(strcmp(cmdtext,"/drift1", true) == 0)
    {
        SetPlayerPos(playerid,-325.1331,1533.0276,75.3594);
        SendClientMessage(playerid,0x33AAAA33,"Welcome to Drift Place 1 --- by ExtremE_StunteR");
        return 1;
    }
    if(strcmp(cmdtext,"/drift2", true) == 0)
    {
      SetPlayerPos(playerid,2315.8945,1401.4497,42.8203);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 2 --- by ExtremE_StunteR");
        return 1;
    }
    if(strcmp(cmdtext, "/drift3", true) == 0)
    {
      SetPlayerPos(playerid,1259.4164,-2027.4384,59.4366);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 3 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drift4", true) == 0)
    {
      SetPlayerPos(playerid,-1056.5476,-1353.2755,129.9260);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 4 --- by ExtremE_StunteR");
        return 1;
    }
    if(strcmp(cmdtext, "/drift5", true) == 0)
    {
      SetPlayerPos(playerid,2221.7561,1962.5647,31.7797);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 5 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drift6", true) == 0)
    {
      SetPlayerPos(playerid,1148.0913,2179.3987,10.8203);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 6 --- by ExtremE_StunteR");
        return 1;
    }
    if(strcmp(cmdtext, "/drift7", true) == 0)
    {
      SetPlayerPos(playerid,-767.6177,2751.4990,45.7734);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 7 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drift8", true) == 0)
    {
      SetPlayerPos(playerid,-2135.2207,918.6221,79.8516);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 8 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drift9", true) == 0)
    {
      SetPlayerPos(playerid,-2699.5088,584.5812,15.8154);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 9 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drift10", true) == 0)
    {
      SetPlayerPos(playerid,-2412.5579,-604.6044,132.5625);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 10 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drift11", true) == 0)
    {
      SetPlayerPos(playerid,-715.3802,-72.8116,69.0316);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Place 11 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/driftcircle1", true) == 0)
    {
      SetPlayerPos(playerid,-2692.8047,393.9262,4.6641);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Circle 1 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/driftcircle2", true) == 0)
    {
      SetPlayerPos(playerid,-2107.8701,-827.4761,32.1719);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drift Circle 2 --- by ExtremE_StunteR");
        return 1;
    }
    if(strcmp(cmdtext, "/drag1", true) == 0)
    {
      SetPlayerPos(playerid,1426.4360,1193.6797,10.6719);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 1 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drag2", true) == 0)
    {
      SetPlayerPos(playerid,1478.1963,1209.7926,10.8203);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 2 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drag3", true) == 0)
    {
      SetPlayerPos(playerid,1037.2848,-2309.5500,13.0938);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 3 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drag4", true) == 0)
    {
      SetPlayerPos(playerid,2922.1399,-1640.1906,14.0503);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 4 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/drag5", true) == 0)
    {
      SetPlayerPos(playerid,1796.8032,2257.4338,5.1961);
      SendClientMessage(playerid,0xAA3333AA,"Welcome to Drag Place 5 --- by ExtremE_StunteR");
      return 1;
    }
    if(strcmp(cmdtext, "/nrg", true) == 0)
    {
        new vehicleid;
        new Float:X,Float:Y,Float:Z,Float:Angle;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle(playerid,Angle);
        GetPlayerVehicleID(playerid);
        CreateVehicle(522,X,Y,Z,Angle,-1,-1,600);
        PutPlayerInVehicle(playerid, vehicleid, 1);
        return 1;
    }
    if(strcmp(cmdtext, "/elegy", true) == 0)
    {
        new vehicleid;
        new Float:X,Float:Y,Float:Z,Float:Angle;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle(playerid,Angle);
        GetPlayerVehicleID(playerid);
        CreateVehicle(562,X,Y,Z,Angle,-1,-1,600);
        PutPlayerInVehicle(playerid, vehicleid, 1);
        return 1;
    }
    if(strcmp(cmdtext, "/sultan", true) == 0)
    {
        new vehicleid;
        new Float:X,Float:Y,Float:Z,Float:Angle;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle(playerid,Angle);
        GetPlayerVehicleID(playerid);
        CreateVehicle(560,X,Y,Z,Angle,-1,-1,600);
        PutPlayerInVehicle(playerid, vehicleid, 1);
        return 1;
    }
    if(strcmp(cmdtext, "/bmx", true) == 0)
    {
        new vehicleid;
        new Float:X,Float:Y,Float:Z,Float:Angle;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle(playerid,Angle);
        GetPlayerVehicleID(playerid);
        CreateVehicle(481,X,Y,Z,Angle,-1,-1,600);
        PutPlayerInVehicle(playerid, vehicleid, 1);
        return 1;
    }
    if(strcmp(cmdtext, "/turismo", true) == 0)
    {
        new vehicleid;
        new Float:X,Float:Y,Float:Z,Float:Angle;
        GetPlayerPos(playerid,X,Y,Z);
        GetPlayerFacingAngle(playerid,Angle);
        GetPlayerVehicleID(playerid);
        CreateVehicle(451,X,Y,Z,Angle,-1,-1,600);
        PutPlayerInVehicle(playerid, vehicleid, 1);
        return 1;
    }
    return 0;
}



Re: Commands Help... - [MWR]Blood - 19.03.2010

Quote:
Originally Posted by Virtual1ty
Quote:
Originally Posted by ikarus
Here's the code:
...

But I don't think the problem is here...
Dude, that's one seriously not indented code, indent it properly, although I have
not found any errors too, check your FILTERSCRIPTS ( if you are using any), there
might be error's | or conflicts there.
Yeah, thanks!I found where is the bug.. in one FS


Re: Commands Help... - Micko9 - 19.03.2010

Quote:
Originally Posted by ikarus
Quote:
Originally Posted by Virtual1ty
Quote:
Originally Posted by ikarus
Here's the code:
...

But I don't think the problem is here...
Dude, that's one seriously not indented code, indent it properly, although I have
not found any errors too, check your FILTERSCRIPTS ( if you are using any), there
might be error's | or conflicts there.
Yeah, thanks!I found where is the bug.. in one FS
Off-Topic Question : with 200+ Posts you get huge clucker?


Re: Commands Help... - [MWR]Blood - 19.03.2010

Quote:
Originally Posted by Micko9
Quote:
Originally Posted by ikarus
Quote:
Originally Posted by Virtual1ty
Quote:
Originally Posted by ikarus
Here's the code:
...

But I don't think the problem is here...
Dude, that's one seriously not indented code, indent it properly, although I have
not found any errors too, check your FILTERSCRIPTS ( if you are using any), there
might be error's | or conflicts there.
Yeah, thanks!I found where is the bug.. in one FS
Off-Topic Question : with 200+ Posts you get huge clucker?
Yeah


Re: Commands Help... - adsy - 19.03.2010

if anyone wants to know the fix for that (well at least the main change)

the bottom of the script:

Код:
return 1;
}
was changed to

Код:
return 0;
}