Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define COLOR_YELLOW 0xDABB3EAA
- #define COLOR_GREEN 0x9EC73DAA
- #define COLOR_GRAD6 0xF0F0F0FF
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Roleplay Guide - Loaded");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Roleplay Guide- Made By Tutrix ");
- print("----------------------------------\n");
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[128], idx;
- cmd = strtok(cmdtext, idx);
- //----------------------------------[Out Of Character]----------------------------------
- if(strcmp(cmd, "/outchar", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Out Of Character");
- SendClientMessage(playerid, COLOR_GREEN, "Out Of Character shortened OOC refers to the world of players.");
- SendClientMessage(playerid, COLOR_GREEN, "Indicates something said or done by the person playing a character, not the character itself.");
- return 1;
- }
- //----------------------------------[InCharacter]----------------------------------
- if(strcmp(cmd, "/inchar", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "In Character");
- SendClientMessage(playerid, COLOR_GREEN, "In Character shortened IC refers to the world of characters. Basically whenever you are roleplaying you are 'In Character'");
- return 1;
- }
- //----------------------------------[oocterm]----------------------------------
- if(strcmp(cmd, "/oocterm", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "OOC Term");
- SendClientMessage(playerid, COLOR_GREEN, "OOC-Terms are terms like lol, w8, omg, u, ur, lmao, rofl, lmfao, etc...");
- return 1;
- }
- //----------------------------------[rpgcredits]----------------------------------
- if(strcmp(cmd, "/rpgcredits", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Roleplay Guide Credits");
- SendClientMessage(playerid, COLOR_GREEN, "The guide is made by Tutrix");
- return 1;
- }
- //----------------------------------[deathmatch]----------------------------------
- if(strcmp(cmd, "/deathmatch", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Deathmatch");
- SendClientMessage(playerid, COLOR_GREEN, "You kill someone with out a good ic reason, or you dont have a reason at all");
- return 1;
- }
- //----------------------------------[revengekill]----------------------------------
- if(strcmp(cmd, "/revengekill", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Revenge Kill");
- SendClientMessage(playerid, COLOR_GREEN, "Someone kills you, and you go back and kills the same person");
- return 1;
- }
- //----------------------------------[powergaming]----------------------------------
- if(strcmp(cmd, "/powergaming", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "PowerGaming");
- SendClientMessage(playerid, COLOR_GREEN, "Having Un-Natural powers IC");
- SendClientMessage(playerid, COLOR_GREEN, "Example:Jumping from a high place, without hurting your self");
- return 1;
- }
- //----------------------------------[metagaming]-----------------------------------
- if(strcmp(cmd, "/metagaming", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "MetaGaming");
- SendClientMessage(playerid, COLOR_GREEN, "Using OOC knowledge IC");
- SendClientMessage(playerid, COLOR_GREEN, "Example:Reading a players nametag and says the name IC");
- return 1;
- }
- //----------------------------------[cardm]-----------------------------------
- if(strcmp(cmd, "/cardm", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Car Deathmatch");
- SendClientMessage(playerid, COLOR_GREEN, "Car Deathmatching is driving over someone with your car for no In Character reason");
- return 1;
- }
- //----------------------------------[Character Kill]-----------------------------------
- if(strcmp(cmd, "/charkill", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Character Kill");
- SendClientMessage(playerid, COLOR_GREEN, "Character Kill shortened CK is killing someone's character permanently.");
- SendClientMessage(playerid, COLOR_GREEN, "When your character gets Character Killed you can't play with that character anymore");
- SendClientMessage(playerid, COLOR_GREEN, "you will have to make a new character to continue playing on the server.");
- return 1;
- }
- //----------------------------------[Heli Kill]-----------------------------------
- if(strcmp(cmd, "/helikill", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Helicopter Kill");
- SendClientMessage(playerid, COLOR_GREEN, "Helikill is the act of killing someone with helicopter blades.");
- return 1;
- }
- //----------------------------------[Bunny Hop]-----------------------------------
- if(strcmp(cmd, "/bhop", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "BunnyHop");
- SendClientMessage(playerid, COLOR_GREEN, "Bunny hopping or bunny jumping is the act of jumping repeatedly by struming the jump key. This is used to travel faster on-foot.");
- return 1;
- }
- //----------------------------------[Bunny Hop]-----------------------------------
- if(strcmp(cmd, "/roleplay", true) == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Roleplay");
- SendClientMessage(playerid, COLOR_GREEN, "Roleplaying shortened RP means taking on the role of a character and acting it out in-game through emotes.");
- SendClientMessage(playerid, COLOR_GREEN, "It's pretty easy to learn, mostly you just act like you would in real life.");
- return 1;
- }
- //----------------------------------[roleplayguide]--------------------------------
- if(strcmp(cmd, "/roleplayguide", true) == 0)
- {
- SendClientMessage(playerid, COLOR_GREEN, "--Roleplay Guide--");
- SendClientMessage(playerid, COLOR_GRAD6, "USAGE: /metagaming /powergaming /deathmatch /revengekill /rpgcredits /inchar /outchar /oocterm");
- SendClientMessage(playerid, COLOR_GRAD6, "USAGE: /cardm /charkill /helikill /bhop /roleplay");
- SendClientMessage(playerid, COLOR_GREEN, "--Roleplay Guide--");
- return 1;
- }
- return 0;
- }
- strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[20];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement