Raised This Month: $51 Target: $400
 12% 

[HELP] How to execute if type .live


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 03-21-2012 , 12:42   [HELP] How to execute if type .live
Reply With Quote #1

What i need to incorporate this in a plugin and this only works if i type .live

Example in my server have a plugin if i type .warmup the server do sv_restart 1 and the money sets to 16000 and when i type .live hes configure for pcw and i need activate this when i type .live

#include <amxmodx>
#include <cstrike>

new gRound;

new sv_restart;

new gMaxPlayers;

public plugin_init() {
register_plugin("Clan War - Team Swap", "0.0.1", "Exolent");

register_logevent("EventRoundStart", 2, "1=Round_Start");
register_event("TextMsg", "EventRestartRound", "a", "2&#Game_w", "2&#Game_C");

sv_restart = get_cvar_pointer("sv_restart"); gMaxPlayers = get_maxplayers();
}

public EventRoundStart() {
if(++gRound == 15) {
for(new id = 1; id <= gMaxPlayers; id++) {
if(is_user_connected(id)) {
switch(cs_get_user_team(id)) {
case CS_TEAM_T: cs_set_user_team(id, CS_TEAM_CT);
case CS_TEAM_CT: cs_set_user_team(id, CS_TEAM_T );
}
}
}

set_pcvar_num(sv_restart, 1);
}
}

public EventRestartRound() {
gRound = 0;
}
extream87 is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 03-21-2012 , 12:48   Re: [HELP] How to execute if type .live
Reply With Quote #2

Is no more easy use [pawn] or [php] tags?
__________________
kramesa is offline
Reply



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 05:12.


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