Raised This Month: $ Target: $400
 0% 

[SNIPPET] sm_forcertv - Edit of rockthevote.sp


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DataMatrix
Senior Member
Join Date: Aug 2005
Location: UK, Liverpool
Old 10-24-2008 , 07:20   [SNIPPET] sm_forcertv - Edit of rockthevote.sp
Reply With Quote #1

This small code snippet allows an admin to force a rockthevote.

Useful when you need 1 more player to type rtv.

Manual guide:
1: Open rockthevote.sp

2: Find:
Code:
RegAdminCmd("sm_rtv_addmap", Command_Addmap, ADMFLAG_CHANGEMAP, "sm_rtv_addmap <mapname> - Forces a map to be on the RTV, and lowers the allowed nominations.");
3: Add this code after that line:
Code:
RegAdminCmd("sm_forcertv", Command_ForceRTV, ADMFLAG_CHANGEMAP, "sm_forcertv - Forces RTV to start");
4: Find:
Code:
public Action:Command_Addmap(client, args)
5: Add this code before that line:
Code:
public Action:Command_ForceRTV(client, args)
{
	new String:clientName[32];
	GetClientName(client, clientName, 31);
	PrintToChatAll("[SM] %s forced an RTV vote",clientName);
	CreateTimer(2.0, Timer_StartRTV, TIMER_FLAG_NO_MAPCHANGE);
}
6: Save and compile

Premade .sp file:
Attached Files
File Type: sp Get Plugin or Get Source (rockthevote.sp - 840 views - 14.2 KB)
__________________

Last edited by DataMatrix; 11-17-2008 at 10:29.
DataMatrix is offline
Send a message via MSN to DataMatrix
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode