how can i getting player ping
hi guys,
1.
can u tell me how to get player's ping (latency)
or Self ping.
2.
how can i make console commands
eg. when i costume command in the console say
changenextgame "mp_rust" "sd"
it should run my function in my mod
i.e.
changenextgame(nextmap, nexttype)
{
setDvar("sv_maprotation", "gametype " + nextmap + " map " + nexttype + " " + getDvar("sv_maprotation"));
}
Regards

Boon Pek is right, it's not possible.
i thought it was like " + self.ping + "
If I remember right, it has something with
setDvarIfUnitialized("", );
Can't really remember.
setDvarIfUnitialized("nextname", "");
self setDvarIfUnitialized("nextname", "");
Actuatly if i add any 1 these line to init() & try to load that mod i get error "Unknown command"
setDvarIfUnitialized isn't a function in MW2, which is why it does not work.