All pastes #482299 Raw Edit

Something

public text v1 · immutable
·published 2007-05-11 06:14 UTC
rendered paste body
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/me", true, 3)==0) { // 3 is the length of /me
    new str[256], pname[256];
    GetPlayerName(playerid, pname, 256);
    format(str, 256, "%s says %s", pname, cmdtext[4]);
    SendClientMessageToAll(0xFFFF00AA, str);
    return 1;
}
//-------help-------
    if(strcmp(cmdtext, "/help", true) == 0) {
        SendClientMessage(playerid,COLOR_YELLOW,"Welcome to Grand Canyon - Created by FireWhacko");
        SendClientMessage(playerid,COLOR_YELLOW,"Type /commands for a list of commands");
        return 1;
}
//-------rules--------
    if(strcmp(cmdtext, "/rules" true) == 0){
        SendClientMessage(playerid,COLOR_YELLOW,"No cheating");
        SendClientMessage(playerid,COLOR_YELLOW,"No Flaming");
        SendClientMessage(playerid,COLOR_YELLOW,"No Spamming");
        SendClientMessage(playerid,COLOR_YELLOW,"Remember: this is a non-clan server.");
        SendClientMessage(playerid,COLOR_YELLOW,"Everyone is welcome, except cheaters and hackers");
        SendClientMessage(playerid, COLOR_YELLOW,"Go Ahead and Enjoy, I might add more maps. :)");
        return 1;
}
//-----------commands---------
    if(strcmp(cmdtext, "/commands" true) == 0){
        SendClientMessage(playerid, COLOR_YELLOW, "/monstermash - Ram some monsters!
        return 1;
}
return 0
}