
July 18th, 2004, 12:45 AM
|
|
Registered User
|
|
Join Date: Jul 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
n00b help
Okay, I'm probablly taking on a project way too big for my C++ knowledge, but I'll give it a shot.
Basically, I want to make a script that reads a log file, and when it finds the string "KILLPLAYER" execute a certain action (Posted below).
void UGIN_Crate_Page_Ammo::Custom(GameObject *obj, int message, int param, GameObject *sender) {
if (message == CUSTOM_EVENT_POWERUP) {
char KillMsg[512];
sprintf(KillMsg,"page %s You have picked up an ammo crate. Your ammo has been refilled. ",PlayerName(sender));
ConsoleCommand(KillMsg);
}
}
Could someone tell me where to start and possible give some code samples? Any help is greatly appreciated.
|