(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
(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.
(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
Noobs.. learn to read the API.
iPrintLnbold("Message",null); will print to everyone
(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
ohh fail, ty.
But still .. its much easier like the way i posted it?
(01-08-2012, 20:44)iAegle Wrote: [ -> ]But still .. its much easier like the way i posted it?
No. It's 5 characters.. ",null"
(01-03-2012, 11:27)Pozzuh Wrote: [ -> ]So since @Nukem is a lazy fuck ( ) 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
@
Deviler86 I'm pretty sure a lot of them aren't possible, sadly.
(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.