Jump to content
  • 0

[Don't Work] ifgmlvl Script


jehadmalek

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  07/28/13
  • Last Seen:  

Hi ,

 

i made this script as only gm will be able to use it but when i tried it even players can ..

prontera,152,260,5	script	Starter	733,{
	if( getgmlevel() >= 99gms_level){
		if ($@race != 0) goto L_Started;
		if ($@counting != 0) goto L_Started;
		if ($@racecount == 1) goto L_Started;
	} else { end; }
L_Menu:
	mes "[Race Starter]";
	mes "Please stay on the Eastern side of me.";
	menu "Start Race",L_Count,"Cancel",-;
	close;
L_Count:
	set $@counting,1;
	mes "Counting down...";
	addtimer 1000, "Starter::OnCount1000";
	addtimer 2000, "Starter::OnCount2000";
	addtimer 3000, "Starter::OnCount3000";
	addtimer 4000, "Starter::OnCount4000";
	announce strcharinfo(0) + "Started a countdown",1;
	announce "Get ready to race!",1;
	close;

OnCount1000:
	announce "[3]",1;
	end;
OnCount2000:
	announce "[2]",1;
	end;
OnCount3000:
	announce "[1]",1;
	end;
OnCount4000:
	emotion e_go;
	specialeffect EF_CHIMTO;
	announce "[GO!]",1;
	set $@race,1;
	set $@position,0;
	set $@counting,0;
	set $@raceid,rand(100000,999999);
	end;

L_Started:
	if ((getmapusers("pvp_y_1-5") < 3) && ($@position > 0)) goto L_Menu;
	if ($@position > 2) goto L_Menu;
		mes "[Starter]";
		mes "Race in progress";
		close;

OnInit:
	set $@race,0;
	set $@position,0;
	set $@racecount,0;
	end;
}

plz help me and thx

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if( getgmlevel() >= 99gms_level){

change to

if( getgmlevel() >= 99){
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  07/28/13
  • Last Seen:  

if( getgmlevel() >= 99gms_level){

change to

if( getgmlevel() >= 99){

 

Thaanks Now can u till me how to make "on touche player mes close" 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...