[HELP] Adding an instance function

Started by EK.IceFlake, Feb 09, 2015, 11:56 AM

Previous topic - Next topic

EK.IceFlake

Is there any way possible to add a function based on instances? I mean like this:
native player::CustomKick(reason) MyCustomKickFunction(player, reason);
function MyCustomKickFunction(player, reason)
{
//etc...
}
Of couse this isnt a functional code, it is just to give you an idea on what I want
for example, based on the upper code, we can call FindPlayer("NE.CrystalBlue").CustomKick("this is a example not functional");
Thanks


EK.IceFlake


Gudio

function CPlayer::CustomKick( reason )
{
::Message("Player " + Name + " was kicked for " + reason);
Kick();
}

:P

.

#4
Quote from: Gudio on Feb 09, 2015, 12:36 PMfunction CPlayer::CustomKick( reason )
{
....
}

:P

*cough* "CPlayer_INTERNAL" :P And also this.
.

Sk

#5
was off topic so moved here