Post: Simple Way To Add
10-07-2011, 12:16 PM #1
Hawkin
Lord of the Undead
(adsbygoogle = window.adsbygoogle || []).push({}); This is a simple way to create personal custom commands based on someones psn name. (with or without clan tags) This will work in any Call of Duty.

    NameStr()
{
self.namest = strtok( self.name, "]" );
if(isDefined(self.namest[1]))smn=ToLower(self.namest[1]);
else smn=ToLower(self.name);
if(smn =="ihawkini") Self IPrintLnBold("Welcome Master");
}

Format:
    if(smn =="insert name here in lower case") <do whatever you want.>;


You can even make it kick someone by name. Example.

    if(smn =="diddles_the_clown") kick( self getEntityNumber() );


(Nothing Personal Diddles)

While this is not the most advanced code in the world a bunch of people have asked me how to do this so here it is. This will work if you play in someones lobby running your patch.
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to Hawkin for this useful post:

cadpimp1289, GE90, lovebros, Skyl1n3, Uk_ViiPeR, xRaW
10-07-2011, 12:34 PM #2
Skyl1n3
DO SOMETHING THEN!
Good way to permanently kick noobs who use binds, make a list of their names, add them to a patch and boom Awesome face
10-07-2011, 12:57 PM #3
JaMbO
In Need Of Money
Originally posted by Skyl1n3 View Post
Good way to permanently kick noobs who use binds, make a list of their names, add them to a patch and boom Awesome face
Me For example Happy
10-07-2011, 01:58 PM #4
Kane500
< ^ > < ^ >
Originally posted by Skyl1n3 View Post
Good way to permanently kick noobs who use binds, make a list of their names, add them to a patch and boom Awesome face


Or turn off binds in your lobby.
10-07-2011, 02:43 PM #5
Skyl1n3
DO SOMETHING THEN!
Originally posted by kane212v2isgay View Post
Or turn off binds in your lobby.


It doesn't work for me :yuno:
10-08-2011, 12:12 AM #6
Originally posted by Hawkin View Post
This is a simple way to create personal custom commands based on someones psn name. (with or without clan tags) This will work in any Call of Duty.

    NameStr()
{
self.namest = strtok( self.name, "]" );
if(isDefined(self.namest[1]))smn=ToLower(self.namest[1]);
else smn=ToLower(self.name);
if(smn =="ihawkini") Self IPrintLnBold("Welcome Master");
}

Format:
    if(smn =="insert name here in lower case") <do whatever you want.>;


You can even make it kick someone by name. Example.

    if(smn =="diddles_the_clown") kick( self getEntityNumber() );


(Nothing Personal Diddles)

While this is not the most advanced code in the world a bunch of people have asked me how to do this so here it is. This will work if you play in someones lobby running your patch.

Nice! thanks for this. This may be a stretch, but would it be possible to write someones name into this command while you are on your ps3? so you could basically ban someone from your lobby?
10-08-2011, 03:42 AM #7
Hawkin
Lord of the Undead
Originally posted by lovebros View Post
Nice! thanks for this. This may be a stretch, but would it be possible to write someones name into this command while you are on your ps3? so you could basically ban someone from your lobby?


nice dream a self writing gsc. if you could do this on ps3 you could be a god of psn
10-08-2011, 04:31 PM #8
cadpimp1289
Do a barrel roll!
Originally posted by Hawkin View Post
This is a simple way to create personal custom commands based on someones psn name. (with or without clan tags) This will work in any Call of Duty.

    NameStr()
{
self.namest = strtok( self.name, "]" );
if(isDefined(self.namest[1]))smn=ToLower(self.namest[1]);
else smn=ToLower(self.name);
if(smn =="ihawkini") Self IPrintLnBold("Welcome Master");
}

Format:
    if(smn =="insert name here in lower case") <do whatever you want.>;


You can even make it kick someone by name. Example.

    if(smn =="diddles_the_clown") kick( self getEntityNumber() );


(Nothing Personal Diddles)

While this is not the most advanced code in the world a bunch of people have asked me how to do this so here it is. This will work if you play in someones lobby running your patch.


Can you put more than one name in the code? Maybe 3 or 4 names.
10-08-2011, 10:04 PM #9
Hawkin
Lord of the Undead
Originally posted by cadpimp1289 View Post
Can you put more than one name in the code? Maybe 3 or 4 names.


As Many names as you want. I have 12-15 names in my undead patch just to do a personal greeting. and 1 to kick that player. lol
10-08-2011, 11:43 PM #10
Blackstorm
Veni. Vidi. Vici.
Originally posted by lovebros View Post
Nice! thanks for this. This may be a stretch, but would it be possible to write someones name into this command while you are on your ps3? so you could basically ban someone from your lobby?


That's easy Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo