CAR Commands!
#9

Quote:
Originally Posted by ..::DorkAZoid::..
Quote:
Originally Posted by Fatal
Quote:
Originally Posted by rico760
[23:57:19] AmxLoad
[23:57:19] Loading filter script 'CarCommands.amx'...
[23:57:19] Unable to load filter script 'CarCommands.amx'.
[23:57:19] Loaded 2 filter scripts.

EDIT:
compiled and
C:\Users\Family\Desktop\samp02Xserver.win32\filter scripts\509_CarCommands.pwn(2) : fatal error 100: cannot read from file: "dini"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Download dini.inc(search), and add it to your includes folder.

EDIT: Oh wow, another simple copy and paste, Dude release something that YOU made yourself.
I DIDNT COPY PASTE I MADE THIS MYSELF SWEAR BY GOD PROMISE! i will report you to the mods now
Alright well, let's see.. Let's compare your script and the one you copied from (SaS by Rafay)

Yours:
pawn Код:
if(strcmp(cmdtext,"/car",true)==0)
    {
        SendClientMessage(playerid, 0xFF9933AA, "Vehicle Commands:");
        SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
        SendClientMessage(playerid, 0x00BFFFAA, "/offroad /shadow /twist /ahab /mega /rimshine /wires /classic /(un)lock");
        SendClientMessage(playerid, 0xFFFFFFAA, "/import/grove /switch /cutter /dollar /trance /atomic /virtual /access");
        SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
        return 1;
    }
   
    if(strcmp(cmdtext,"/help",true)==0)
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "FILTERSCRIPT Has Been Made By DorkAZoid");
        return 1;
    }
   
    if (strcmp("/AFK", cmdtext, true, 10) == 0)
    {
    new pName[MAX_PLAYER_NAME];
  new string[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(string, sizeof(string), "%s is away from keyboard", pName);
  SendClientMessageToAll(0xFF9900AA, string);
    return 1;
    }

    if (strcmp("/BACK", cmdtext, true, 10) == 0)
    {
    new pName[MAX_PLAYER_NAME];
  new string[48];
  GetPlayerName(playerid, pName, sizeof(pName));
  format(string, sizeof(string), "%s is back", pName);
  SendClientMessageToAll(0xFF9900AA, string);
    return 1;
    }

    if (strcmp("/lock", cmdtext, true, 10) == 0)
    {
        if (GetPlayerState(playerid) == 2)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
            if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 1);
            }
            PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, COLOR_YELLOW, "Vehicle Locked.");
        }
        else
        {
        SendClientMessage(playerid, COLOR_RED, "You are not driving a vehicle.");
        }
        return 1;
    }

    if (strcmp("/unlock", cmdtext, true, 10) == 0)
    {
        if (GetPlayerState(playerid) == 2)
        {
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
            if (i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid), i, 0, 0);
            }
            PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
            SendClientMessage(playerid, COLOR_YELLOW, "Vehicle Unlocked.");
        }
        else
        {
        SendClientMessage(playerid, COLOR_RED, "You are not driving a vehicle.");
        }
        return 1;
    }

    if(strcmp(cmdtext, "/hydra", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1087);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}

    if (strcmp(cmdtext, "/para", true)==0)
    {
        GivePlayerWeapon(playerid, 46, 1);
        return 1;
    }

    if(strcmp(cmdtext, "/offroad", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1025);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/shadow", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1073);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/mega", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1074);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/rimshine", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1075);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/wires", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1076);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/classic", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1077);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/twist", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1078);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/cutter", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1079);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/switch", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1080);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/grove", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1081);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/import", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1082);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/dollar", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1083);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/trance", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1084);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/atomic", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1085);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/ahab", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1096);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/virtual", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1097);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/access", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1098);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
The one you copied from:
pawn Код:
if(strcmp(cmdtext,"/wheels",true)==0)
    {
        SendClientMessage(playerid, 0xFF9933AA, "Tunning Wheels:");
        SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
        SendClientMessage(playerid, 0x00BFFFAA, "/offroad /shadow /twist /ahab /mega /rimshine /wires /classic");
        SendClientMessage(playerid, 0xFFFFFFAA, "/import/grove /switch /cutter /dollar /trance /atomic /virtual /access");
        SendClientMessage(playerid, 0xFFFFFFAA, "__________________");
        return 1;
    }
    if(strcmp(cmdtext, "/hydra", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1087);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/offroad", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1025);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/shadow", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1073);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/mega", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1074);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/rimshine", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1075);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/wires", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1076);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/classic", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1077);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/twist", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1078);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/cutter", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1079);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/switch", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1080);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/grove", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1081);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/import", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1082);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/dollar", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1083);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/trance", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1084);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/atomic", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1085);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/ahab", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1096);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/virtual", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1097);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if(strcmp(cmdtext, "/access", true) == 0)
    {
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    AddVehicleComponent(vehicleid, 1098);
    }else{
    SendClientMessage(playerid,COLOR_RED,"You are not in a vehicle!!");
    }
    return 1;
}
    if (strcmp(cmd, "/afk", true) == 0)
    {
        if(afk[playerid] == 1) return SendClientMessage(playerid, 0xAA3333AA, "You are already Away From Keyboard ");
      else
      {
        afk[playerid] = 1;
        SetPlayerColor(playerid,AFK);
            TogglePlayerControllable(playerid,0);
            new string[256];
            new pName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pName, sizeof(pName));
            format(string, sizeof(string), "-> %s is now Away From Keyboard!", pName);
            SendClientMessageToAll(0xFFFF00AA, string);
            SendClientMessage(playerid, 0x33AA33AA, "Type /back when you are back to the keyboard!");
        }
        return 1;
    }

    if (strcmp(cmd, "/back", true) == 0)
    {
        if(afk[playerid] ==0) return SendClientMessage(playerid, 0xAA3333AA, "You are not Away From Keyboard!");
      else
      {
        afk[playerid] = 0;
        TogglePlayerControllable(playerid,1);
        new string[256];
            new pName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pName, sizeof(pName));
            format(string, sizeof(string), "-> %s is now back!", pName);
            SendClientMessageToAll(0xFFFF00AA, string);
        }
        return 1;
    }

Reply


Messages In This Thread
CAR Commands! - by DorkAZoid - 04.04.2009, 05:39
Re: CAR Commands! - by rico760 - 04.04.2009, 05:58
Re: CAR Commands! - by ReV. - 04.04.2009, 06:19
Re: CAR Commands! - by rico760 - 04.04.2009, 06:25
Re: CAR Commands! - by ReV. - 04.04.2009, 06:39
Re: CAR Commands! - by rico760 - 04.04.2009, 06:44
Re: CAR Commands! - by DorkAZoid - 04.04.2009, 08:02
Re: CAR Commands! - by rico760 - 04.04.2009, 08:13
Re: CAR Commands! - by ReV. - 04.04.2009, 15:48
Re: CAR Commands! - by harly - 04.04.2009, 22:32
Re: CAR Commands! - by James_Alex - 05.04.2009, 01:45
Re: CAR Commands! - by Norn - 05.04.2009, 02:27
Re: CAR Commands! - by DorkAZoid - 14.04.2009, 12:08
Re: CAR Commands! - by Weirdosport - 14.04.2009, 12:14
Re: CAR Commands! - by DorkAZoid - 15.04.2009, 06:35

Forum Jump:


Users browsing this thread: 1 Guest(s)