Raised This Month: $ Target: $400
 0% 

TSRP Com


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
keVn
Member
Join Date: Jun 2006
Old 07-09-2006 , 01:44   TSRP Com
Reply With Quote #1

Hey, anybody know a way to edit the COM to work with other jobs?
I've found where the script is

Quote:
// Intercom Messaging
public com_message(id,Speech[])
{
new JobID, buffer[64], authid[32]
get_user_authid(id,authid,31)
select_string(id,"money","JobID","steamid",au thid,buffer)
if(equali(buffer,"")) return PLUGIN_HANDLED
JobID = str_to_num(buffer)
if((JobID >= MCPDSTART && JobID <= MCPDEND) || (JobID >= MCMDSTART && JobID <= MCMDEND))
{
new players[32], num, authid2[32], buffer2[64], JobID2
get_players(players,num,"ac")
for(new i = 0; i < num;i++)
{
get_user_authid(players[i],authid2,31)
select_string(players[i],"money","JobID","steamid",authid2,buffer2 )
JobID2 = str_to_num(buffer2)
if((JobID2 >= MCPDSTART && JobID2 <= MCPDEND) || (JobID2 >= MCMDSTART && JobID2 <= MCMDEND)) client_print(players[i],print_chat,Speech)
}
}
else client_print(id,print_chat,"[TalkArea] Need to work for MCPD/MCMD to use Intercom^n")
return PLUGIN_HANDLED
In HarbuRP_Talkarea.sma
But what do I change so that it works for another job other than MCPD
keVn is offline
 


Thread Tools
Display Modes

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 07:59.


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