I need help placing these codes
#1

https://sampforum.blast.hk/showthread.php?tid=360181

I have no idea were to put the codes in pawno
pleawse help, soryi for me bad inglesh
Reply
#2

Try This
pawn Код:
#include <a_samp>
//#define FILTERSCRIPT // Un comment this line if you want it as a filterscript.
//====================================================================
//VARIABLES
//====================================================================
new GameMinutes =1;
new GameSeconds =00; // Put the time for which you gm will run
new GameTimer;
new Text:Timer;
new RoundTime = 60000;//1 minutes = 60 seconds => Put here 60 x 1000 = 60000

//====================================================================
//FORWARDS
//====================================================================
forward GameModeExitFunc(playerid);forward GameTime(playerid); // gamemode of gamemode changing and exit
forward GameModeExitFunc(playerid); // gamemode of gamemode changing and exit


public OnGameModeInit()
{
//  ConnectNPC("Npc","zombie");
    SetGameModeText("YOUR GM HERE");
    UsePlayerPedAnims();
    SetTimer("GameModeExitFunc", RoundTime, 0);
    SetWorldTime(6);
    DisableInteriorEnterExits();

    AddPlayerClass(0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);

    SetTimer("Score",60000,false); // How long your GM will be. Set Your's


    GameTimer = SetTimer("GameTime",1000,1);


    Timer= TextDrawCreate(315.000000, 400.000000,"1:00");
    TextDrawAlignment(Timer,2);
    TextDrawBackgroundColor(Timer,0xFFFFFFAA);
    TextDrawFont(Timer,3);
    TextDrawLetterSize(Timer,0.499999,2.000000);
    TextDrawColor(Timer,0xffffffff);
    TextDrawSetOutline(Timer,1);
    TextDrawSetProportional(Timer,1);
    TextDrawSetShadow(Timer,1);
    //

    return 1;
}


public OnPlayerSpawn(playerid)
{
    SetPlayerPos(playerid,2221.1436,-1149.5422,1027.7969); // Jefferson Co-ords, Put here Yours
    SetPlayerFacingAngle(playerid,355.3727);
    SetPlayerInterior(playerid,15); // Jeferrson interior id (15)
    TextDrawShowForPlayer(playerid,Timer);
    return 1;
}

public GameTime() // TImer Format
{
    if(GameSeconds || GameMinutes)
    {
        GameSeconds--;
        if(GameSeconds <= -1)
        {
            GameMinutes--;
            GameSeconds=59;
        }
        new TimeString[256];
        format(TimeString,sizeof(TimeString),"~b~%02d~y~:~r~%02d",GameMinutes,GameSeconds);
        TextDrawSetString(Timer,TimeString);
    }

    return 1;
}

public GameModeExitFunc(playerid) {
    SendRconCommand("changemode Your GM2 Here"); // You can put your 2nd GM name. Just Replace "Your GM2 Here"
    GameTextForAll("~y~Changing Gamemode ~n~ ~w~Please Wait....",5000,1); // Gamemode changing message
    KillTimer(GameTimer);
    TextDrawHideForPlayer(playerid,Timer);


     }
If it doesn't Work PM me
Of course there is Spots you need to fill out But when you do that It should work.
Reply
#3

Ok Worked my friend, ill test it out, i'll pm you later with more info.

thank you amigo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)