Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Server addon requests
#11
(01-04-2012, 12:46)zxz0O0 Wrote:
(01-03-2012, 11:27)Pozzuh Wrote: -Fix iPrintLn(bold) on the API page. (message,client) not (client,message)
-Make SetClientDvar use ServerClient instead of client num

Red = new

Hm don't understand why you would need this setClientDvar "fix"

Anyway I would like to have a ClientCommand() (similiar to ServerCommand()) ist that possible @Nukem ?

For setclientdvar() you must use "Client.Clientnum" and for iPrintlnbold() you just use "Client". It's confusing

And I think Nukem said somewhere that clientcommand isn't possible
[Image: MaEIQ.png]
Reply

#12
(01-04-2012, 12:56)Pozzuh Wrote:
(01-04-2012, 12:46)zxz0O0 Wrote:
(01-03-2012, 11:27)Pozzuh Wrote: -Fix iPrintLn(bold) on the API page. (message,client) not (client,message)
-Make SetClientDvar use ServerClient instead of client num

Red = new

Hm don't understand why you would need this setClientDvar "fix"

Anyway I would like to have a ClientCommand() (similiar to ServerCommand()) ist that possible @Nukem ?

For setclientdvar() you must use "Client.Clientnum" and for iPrintlnbold() you just use "Client". It's confusing

And I think Nukem said somewhere that clientcommand isn't possible
Ah ok I see now you are right.
[Image: azuw.jpg]
Reply

#13
@Nukem can you add these?
Code:
public void iPrintLn( string message )
{
    foreach ( ServerClient client in GetClients() )
        iPrintLn( message, client );
}

public void iPrintLnBold( string message )
{
    foreach ( ServerClient client in GetClients() )
        iPrintLnBold( message, client );
}
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#14
(01-08-2012, 20:40)iAegle Wrote: @Nukem can you add these?
Code:
public void iPrintLn( string message )
{
    foreach ( ServerClient client in GetClients() )
        iPrintLn( message, client );
}

public void iPrintLnBold( string message )
{
    foreach ( ServerClient client in GetClients() )
        iPrintLnBold( message, client );
}

but, iprintlnBold(getClients(), "message"); is fine too
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#15
Noobs.. learn to read the API.

iPrintLnbold("Message",null); will print to everyone

Heart
[Image: MaEIQ.png]
Reply

#16
(01-08-2012, 20:43)Se7en Wrote:
(01-08-2012, 20:40)iAegle Wrote: @Nukem can you add these?
Code:
public void iPrintLn( string message )
{
    foreach ( ServerClient client in GetClients() )
        iPrintLn( message, client );
}

public void iPrintLnBold( string message )
{
    foreach ( ServerClient client in GetClients() )
        iPrintLnBold( message, client );
}

but, iprintlnBold(getClients(), "message"); is fine too

no, because GetClients() returns an array and the function needs just 1 ServerClient
(01-08-2012, 20:44)Pozzuh Wrote: Noobs.. learn to read the API.

iPrintLnbold("Message",null); will print to everyone

Heart

ohh fail, ty.
But still .. its much easier like the way i posted it?
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#17
(01-08-2012, 20:44)iAegle Wrote: But still .. its much easier like the way i posted it?

No. It's 5 characters.. ",null"
[Image: MaEIQ.png]
Reply

#18
(01-03-2012, 11:27)Pozzuh Wrote: So since @Nukem is a lazy fuck ( Troll Heart ) I think it's a good idea to make one central topic with all requests in it.

List of requests (Put more in replies to this topic)
--Log events (All must include XUID, CID, team, name and time)
-Kill
-Say
-Join team
-Join server
-Disconnect
--Script events
-onGameEnd(time)
-onGameStart(time)
-onPlayerSpawn(time, player)
-onPlayerConnect(time, player)
-onPlayerDisconnect(time, player)
-onPlayerKilled(killed player, attacker, weapon, time)
-OnServerConsoleCmdEntered(message)
-onServerShutdown()
--Script functions
- RankUpPlayer(rank, prestige)
- GiveWeapon(client,weapon)
--General/other
-Ability to turn auto update off.
-Ability to (un)load a plugin while the server is running.
--Bug fixes
-Fix iPrintLn(bold) on the API page. (message,client) not (client,message)
-Make SetClientDvar use ServerClient instead of client num

Red = new

i fully agree to the list of events you got there.
Additionally i would like to have the following events and functions in CPlugin and ServerClient.

As for CPlugin:
- HookDvar(string dvar, void function) //call a function when the dvar is changed
- OnJoinedTeam(ServerClient player, string team) //allies, axis, spectators
- OnKillstreakUsed(ServerClient player, string killstreak)
- iPrintLnAtPoint(ServerClient player, string message, int xCoordinates, int yCoordinates) //x0, y0 would be the topright from the screen
- AddTestClient() <- if even possible

For ServerClient:
- GiveWeapon(string weapon)
- string GetCurrentWeapon()
- SwitchToWeapon(string weapon)
- TakeWeapons() //if possible, including semtex etc.
- GivePerk(string perk)
- ClearPerks()
- GiveKillstreak(string killstreak)
- ClearKillStreaks()
- string GetCurrentTeam() //allies, axis, spectators

other stuff for CPlugin:
- List<string> killstreaks
- List<string> weapons
- List<string> perks
Reply

#19
@Deviler86 I'm pretty sure a lot of them aren't possible, sadly.
[Image: MaEIQ.png]
Reply

#20
(01-14-2012, 22:15)Pozzuh Wrote: @Deviler86 I'm pretty sure a lot of them aren't possible, sadly.

It's more possible than you may think.
[Image: azuw.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] Windows 8.1 Fix for MW3 Server Addon master131 16 17,193 09-29-2014, 23:08
Last Post: SuperNovaAO
Brick [Release] MW3 Server Administration Addon iRoNinja 5 8,587 11-10-2013, 15:46
Last Post: Casper
Exclamation Help cmdlist, dvarlist server crash Nerus 17 11,068 11-09-2013, 23:54
Last Post: Nerus
  Hosting With Addon obliviron 9 6,893 11-04-2013, 22:13
Last Post: d0h!
  Our Level Fastfile is Different from the Server. CheeseToast 6 10,623 11-03-2013, 17:52
Last Post: CheeseToast
  Dedicated Server External (public) IP Nerus 3 5,610 11-02-2013, 14:16
Last Post: Casper
  MW3 Server Version superg1973 7 12,134 10-28-2013, 01:15
Last Post: kotyra972
  Help how to turn off map in dedicated server pero123 8 6,619 10-15-2013, 19:00
Last Post: Nekochan
  Issue with server addon and NAT dimitrifrom31 3 4,701 10-08-2013, 18:11
Last Post: iRoNinja
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 4,415 09-29-2013, 19:46
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.