All pastes #482284 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-05-11 06:08 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,"Welcome to Grand Canyon - Created by FireWhacko");
    SendClientMessage(playerid,"Type /commands for a list of commands");
    return 1;
}
//-------rules--------
      {
 
             if(strcmp(cmdtext, "/rules" true) == 0){
             SendClientMessage(playerid, COLOR_YELLOW 0xFFFF00AA, "No cheating");
             SendClientMessage(playerid, COLOR_YELLOW 0xFFFF00AA , "No Flaming");
             SendClientMessage(playerid, COLOR_YELLOW 0xFFFF00AA, "No Spamming");
             SendClientMessage(playerid, COLOR_YELLOW 0xFFFF00AA, "Remember: this is a non-clan server.");
             SendClientMessage(playerid, COLOR_YELLOW 0xFFFF00AA, "Everyone is welcome, except cheaters and hackers");
             SendClientMessage(playerid, COLOR_YELLOW 0xFFFF00AA, "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
}