Thread: Radio.
View Single Post
  #9  
Old 02-15-2002, 12:54 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by zell12
umm... N-POLALS?
he means n-pulse, darn non-l33t person...
oh well heres a radio, never trested. .
NPC Code:

// Weapon & "Mic":
if (actionserverMessageSend) {
setstring server.radio,#p(0): #p(1);
}
if (actionserverOnOff) {
setstring server.on,#p(0);
}
//#CLIENTSIDE
if (playerchats&&strequals(#g,dj)) {
if (startswith(radio,#c)) {
triggeraction playerx+1.5,playery+2,serverOnOff,weaponname,#e(6,-1,#c);
}
if (startswith(message,#c)) {
triggeraction playerx+1.5,playery+2,serverMessageSend,weaponname ,#a,#e(8,-1,#c);
}
}

// Actual Radio:
if (actionSetText) {
setstring level.mess,#s(server.radio);
}
if (actionteston) {
if (strequals(#s(server.on),on))
this.on=1;
else
this.on=0
}
//#CLIENTSIDE
if (created||initialized||playerenters||timeout) {
triggeraction x,y,teston,;
if (this.on==1) {
triggeraction x,y,SetText,;
message #s(level.mess);
} else {
message;
}
}



i am not the best p2p scripter, and its never been tested, but should work.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote