Simple Help
#5

Quote:
Originally Posted by Johnson_Brooks
Посмотреть сообщение
That code is kinda useless because you did not used it in the /drag command.
And just add new coords in the /drag command.
And if your drag map is big,go to different places and do /save [name] and use the
pawn Код:
switch  and case:
i did.. look. try it ingame read my signature meet me there if its okay. i really need to solve this. appreciate your help!

here's the whole code for ya

pawn Код:
CMD:drag(playerid, params[])
{
        if(GetPVarInt(playerid, "CMDDisabled") != 0)
        {
        ShowPlayerDialog(playerid, DIALOG_EVADE, DIALOG_STYLE_MSGBOX, "Leave Menu", "You must Leave first before using this command", "Leave", "Cancel");
        return 1;
        }
        SetCameraBehindPlayer(playerid);
        SetPlayerFacingAngle( playerid, 0);
        SetPlayerHealth(playerid, 100);
        SetPlayerInterior(playerid, 0);
        SetPlayerVirtualWorld(playerid, 3);
        new string[128], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{6666FF}(/drag) {00CCFF}%s {6666FF}has Teleported to Drag Area",pName);
        SendClientMessageToAll(0xFFFFFFFF, string);
        }
        else
        {
        if(IsPlayerInAnyVehicle(playerid);
        new string[128], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{6666FF}(/drag) {00CCFF}%s {6666FF}has Teleported to Drag Area",pName);
        SendClientMessageToAll(0xFFFFFFFF, string);
        new veh = GetPlayerVehicleID(playerid);
        SetPlayerHealth(playerid, 100);
        SetVehicleZAngle(veh, 0);
        SetCameraBehindPlayer(playerid);
        LinkVehicleToInterior(veh, 0);
        SetCameraBehindPlayer(playerid);
        SetVehicleVirtualWorld(veh, 3);
        PutPlayerInVehicle(playerid, veh, 0);
        }
        pInEvent[playerid] = 1;
        SetPVarInt(playerid, "CMDDisabled", 2);
        new Random = random(sizeof(RandomSpawnDrag));
        SetPlayerPos(playerid, RandomSpawnDrag[Random][0], RandomSpawnDrag[Random][1], RandomSpawnDrag[Random][2]);
        SetPlayerFacingAngle(playerid, RandomSpawnDrag[Random][3]);
        DragCurrentRCP[playerid] = 1;
        SetPlayerRaceCheckpoint(playerid, 0, DragRCP[0][0], DragRCP[0][1], DragRCP[0][2], DragRCP[1][0], DragRCP[1][1], DragRCP[1][2], 15);
        return GameTextForPlayer(playerid,"~y~Welcome to ~n~~b~Drag Area",2000,3);
}
Reply


Messages In This Thread
Simple Help - by kbalor - 31.08.2012, 02:42
Re: Simple Help - by Johnson_Brooks - 31.08.2012, 02:46
Re: Simple Help - by kbalor - 31.08.2012, 02:54
Re: Simple Help - by Johnson_Brooks - 31.08.2012, 02:56
Re: Simple Help - by kbalor - 31.08.2012, 03:00
Re: Simple Help - by Lordzy - 31.08.2012, 03:02
Re: Simple Help - by kbalor - 31.08.2012, 03:22
Re: Simple Help - by Lordzy - 31.08.2012, 03:48

Forum Jump:


Users browsing this thread: 1 Guest(s)