Jump to content
  • 0

Question

Posted

Salut am si eu o problema..... nu stiu cum sa pun timer la stuntevent dak stiti va rog sa ma ajutati :D

Astea sunt liniile de la stunt unde cred ca trb pus timeru

if(strcmp(cmd,"/stuntevent",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
		   if(NRGStarted == 0)
		   {
               SendClientMessage(playerid, COLOR_LIGHTBLUE,"This event isn't started at the moment!");
               return 1;
		   }
		   if(PlayerOnMission[playerid] > 0)
           {
                        SendClientMessage(playerid, COLOR_GREY, " You're on mission right now,you can't hold any Materials Packages!");
                        return 1;
           }
           SetPlayerCheckpoint(playerid, NRGStuntX,NRGStuntY,NRGStuntZ, 3.0);
           IsAtStuntEvent[playerid] = 1;
           SendClientMessage(playerid, COLOR_LIGHTBLUE, "{FFFFFF}••• Ai intrat la {FF9900}StuntEVENT. {FFFFFF}Du-te la checkpoint si fa {FF9900}stunt-ul!");
           return 1;
		}
	}
	if(strcmp(cmd,"/startstuntevent",true)==0)
    {
        if(IsPlayerConnected(playerid) && PlayerInfo[playerid][pAdmin] >= 1337)
        {
           StartNewNRGEvent();
           return 1;
		}
	}
	if(strcmp(cmd,"/stopstuntevent",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {

           IsAtStuntEvent[playerid] = 0;
           SendClientMessage(playerid, COLOR_GREY, "Ai oprit {FF9900}StuntEvent-ul!");
           return 1;
		}
	}

2 answers to this question

Recommended Posts

Posted

Timer-ul. In cazul tau trebuie pus la on gamemodeinit.

StartNewNRGEvent();

SetTimer("StartNewNRGEvent",timp, true); unde este timp tu trebuie sa scrii din cat in cat sa se repete

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.