ChatCommandClass
ChatCommandRegistrant
TokenClass
It doesn't let me use them.
Here's the code I did.
class picChatCommand : public ChatCommandClass {
void Triggered(int ID,const TokenClass &Text,int ChatType) {
GameObject *obj = Get_GameObj(ID);
int cost = 1200;
const char *item = "Pic";
const char *powerup = "POW_PersonalIonCannon_Player";
// const char *wepname = "Weapon_PersonalIonCannon_Player";
if (Commands->Get_Money(Get_GameObj(ID)) < cost)
{
Console_Input(StrFormat("sndp %d m00evag_dsgn0028i1evag_snd.wav",ID).c_str());
Console_Input(StrFormat("ppage %d you need %d to buy a %s",ID, cost, item).c_str());
}
else
{
Commands->Give_PowerUp(obj, powerup, 1);
// Set_Clip_Bullets(obj,wepname,Get_Max_Clip_Bullets(obj,wepname));
Commands->Give_Money(obj, static_cast<float>(-cost), false);
Console_Input(StrFormat("msg %s just bought a %s ",Get_Player_Name(obj), item, cost).c_str());
}
}
};
ChatCommandRegistrant<picChatCommand> picChatCommandReg("!personal_ion_cannon;!pic",CHATTYPE_ALL,0,GAMEMODE_ALL);
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
[Updated on: Tue, 29 May 2012 01:55]
Report message to a moderator