page poke system [message #468239] |
Thu, 31 May 2012 10:22 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
So say I put this on a switch and I set the team to GDI.
What am I missing to only page GDI the msg?
void DSG_Poke_PPAGE::Poked(GameObject *obj, GameObject *poker)
{
if (dopage)
{
int x;
x = Get_Int_Parameter("Team");
if (CheckPlayerType(poker,x))
if (_stricmp(Get_Parameter("PPage"),"0") != 0)
{
char p[250];
sprintf(p,"ppage %d %s",Get_Player_ID(poker),Get_Parameter("PPage"));
Console_Input(p);
}
dopage = false;
Commands->Start_Timer(obj,this,5.0f,150);
Commands->Enable_HUD_Pokable_Indicator(obj, false);
}
}
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: page poke system [message #468454 is a reply to message #468239] |
Tue, 05 June 2012 15:06 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
OK I redid it, now it only works for that team, but when I poke it as nod, gdi can see the message that is suppose to be my team only.
void DSG_Poke_Page::Poked(GameObject *obj,GameObject *poker)
{
int paraTeam = Get_Int_Parameter("Team");
if (Get_Player_Type(poker) == paraTeam)
{
char ppage[256];
sprintf(ppage,"%s",Get_Parameter("PPage"));
Send_Message(Get_Int_Parameter("Red"),Get_Int_Parameter("Green"),Get_Int_Parameter("Blue"),ppage);
Commands->Create_2D_WAV_Sound(Get_Parameter("WavSound"));
}
}
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
Re: page poke system [message #468456 is a reply to message #468239] |
Tue, 05 June 2012 15:31 |
|
Ethenal
Messages: 2532 Registered: January 2007 Location: US of A
Karma: 0
|
General (2 Stars) |
|
|
Send_Message_Team(int team, unsigned int red, unsigned int green, unsigned int blue, const char *msg)
-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29 | Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade
|
[Updated on: Tue, 05 June 2012 15:32] Report message to a moderator
|
|
|
Re: page poke system [message #468462 is a reply to message #468456] |
Tue, 05 June 2012 17:57 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Ethenal wrote on Tue, 05 June 2012 17:31 |
Send_Message_Team(int team, unsigned int red, unsigned int green, unsigned int blue, const char *msg)
|
Thanks but I figured it out, someone else helped me in the mean time.
Send_Message_Team(paraTeam, Get_Int_Parameter("red") , Get_Int_Parameter("green") , Get_Int_Parameter("blue"), tpage);
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|