Jump to content
  • 0

hi rA need a script like this .


Diss

Question


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   1
  • Joined:  05/01/13
  • Last Seen:  

i need script like this 

 

usable item when you click it the player will get the group id 1(VIP) and have expiration .

 

thanks ..

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  86
  • Topics Per Day:  0.02
  • Content Count:  591
  • Reputation:   146
  • Joined:  06/19/12
  • Last Seen:  

use the script command "atcommand"

 

atcommand "@adjgroup <group_id>"; 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  35
  • Reputation:   2
  • Joined:  05/23/12
  • Last Seen:  

*vip_status(<type>,{"<character name>"})

Returns various information about a player's VIP status.

Valid types:

 1 - VIP status. (1 if VIP, 0 if non-VIP)

 2 - VIP expire date. (timestamp string if VIP, 0 if non-VIP)

 3 - VIP time remaining. (timestamp string if VIP, 0 if non-VIP)

NOTE: This command is only available if the VIP System is enabled.

---------------------------------------

*vip_time <time>,{"<character name>"};

Changes a player's VIP time (in minutes). A positive value will increase time, and a

negative value will decrease time.

NOTE: This command is only available if the VIP System is enabled.

 

Edited by Aksl
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  67
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   1
  • Joined:  05/01/13
  • Last Seen:  

can i make it like this atcommand "@adjgroup <1>,10000,1";  for have expiration ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

Try this

-	script	test	-1,{

OnPCLoginEvent:
	if(#VIPitem >= gettimetick(2)) {
		atcommand "@adjgroup 1";		
	}
	end;

}

//put this on your usable as its Item Script
//Default 5 minutes VIP
//set #VIPItem,gettimetick(2)+300;
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...