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-09-2011, 12:52 AM #11
iReset Nigga
2Fresshh!!
Originally posted by Blackstorm View Post
That's easy Smile


anything is easy for u black whore lmao :p
and we could make something where it ****s there shit up then kicks em lol
10-10-2011, 06:48 PM #12
Kearney158
Bounty hunter
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.


Am I doing something wrong? I keep getting Server script compile error, unknown function, (see console for details).

I put the function in my patch and then threaded it in onPlayerSpawned.
10-11-2011, 05:23 AM #13
Hawkin
Lord of the Undead
Originally posted by Kearney158 View Post
Am I doing something wrong? I keep getting Server script compile error, unknown function, (see console for details).

I put the function in my patch and then threaded it in onPlayerSpawned.


what thread is giving you the function error? what cod are you using this on? cod5 or mw2?

---------- Post added at 01:21 AM ---------- Previous post was at 01:19 AM ----------

Originally posted by Blackstorm View Post
That's easy Smile


Blackstorm says what? do you mean even after you turn your ps3 off?

---------- Post added at 01:23 AM ---------- Previous post was at 01:21 AM ----------

By the way I f'd up the title 2 this post. there really should be a way to change ur own post title, NGU.
10-11-2011, 05:33 AM #14
Blackstorm
Veni. Vidi. Vici.
Originally posted by Hawkin View Post
what thread is giving you the function error? what cod are you using this on? cod5 or mw2?

---------- Post added at 01:21 AM ---------- Previous post was at 01:19 AM ----------



Blackstorm says what? do you mean even after you turn your ps3 off?

---------- Post added at 01:23 AM ---------- Previous post was at 01:21 AM ----------

By the way I f'd up the title 2 this post. there really should be a way to change ur own post title, NGU.


lol Uhm, no not when you turn your PS3 off. But you could make a custom psn input in-game.
10-11-2011, 01:27 PM #15
Woof
...hmm
Originally posted by Hawkin View Post
what thread is giving you the function error? what cod are you using this on? cod5 or mw2?

---------- Post added at 01:21 AM ---------- Previous post was at 01:19 AM ----------



Blackstorm says what? do you mean even after you turn your ps3 off?

---------- Post added at 01:23 AM ---------- Previous post was at 01:21 AM ----------

By the way I f'd up the title 2 this post. there really should be a way to change ur own post title, NGU.


Originally posted by Blackstorm View Post
lol Uhm, no not when you turn your PS3 off. But you could make a custom psn input in-game.


Just image the possibilities if we could have a database :cry:
10-11-2011, 06:13 PM #16
Kearney158
Bounty hunter
Originally posted by Hawkin View Post
what thread is giving you the function error? what cod are you using this on? cod5 or mw2?

---------- Post added at 01:21 AM ---------- Previous post was at 01:19 AM ----------




Its for cod5, but never mind I got it working Happy ....I made a very stupid mistake
10-11-2011, 11:01 PM #17
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.



NOTHING personal, thats very personal. btw you spelled my name wrong...again. i think you just like messing with me because you love me, its ok you can admit it.
10-12-2011, 03:55 PM #18
Hawkin
Lord of the Undead
Originally posted by Clown View Post
NOTHING personal, thats very personal. btw you spelled my name wrong...again. i think you just like messing with me because you love me, its ok you can admit it.

No I misspelled it on purpose I didn't want you picking up any more slutty fanboys online and taking them back to our love pad.
10-12-2011, 04:06 PM #19
HowsMyDROPSHOT
Do a barrel roll!
you a genius i love your patches

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo