|
Author
|
Message
|
|
Member
|

07-09-2006
, 01:44
TSRP Com
|
#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
|
|
|
|