24.11.2010, 12:14
Rp list by Aidz. (v1.0)
How to use this script.
This script has 2 basic commands.
/rplist
/rp
Can i edit it?
Of course, i couldn't care less if you edited it.
Just dont come crying to me if you break it and dont know how to fix it.
What does it do?
Well, this script lets you enter a command like for example /rp cop , it will set your skin to a cop, set your color to blue, give you cop weapons and tell everybody that you are rping a cop.
The code is below, enjoy!
Ohh and tell me if i missed anything so i can add it in v2.0
How to use this script.
This script has 2 basic commands.
/rplist
/rp
Can i edit it?
Of course, i couldn't care less if you edited it.
Just dont come crying to me if you break it and dont know how to fix it.
What does it do?
Well, this script lets you enter a command like for example /rp cop , it will set your skin to a cop, set your color to blue, give you cop weapons and tell everybody that you are rping a cop.
The code is below, enjoy!
Ohh and tell me if i missed anything so i can add it in v2.0
Код:
#include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Rp script by Aidz "); print("--------------------------------------\n"); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/rp", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFF0000FF, " /rp (what you want to rp) for tis command to work!"); SendClientMessage(playerid, 0xFF0000FF, " /rplist for a list of things you can rp."); return 1; } if (strcmp("/rplist", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x9900CCFF, "/rp cop to rp a poliece officer."); SendClientMessage(playerid, 0x9900CCFF, "/rp swat to rp a swat trooper."); SendClientMessage(playerid, 0x9900CCFF, "/rp fbi to rp a fbi agent."); SendClientMessage(playerid, 0x9900CCFF, "/rp firefighter to rp a firefighter."); SendClientMessage(playerid, 0x9900CCFF, "/rp medic to rp medic."); SendClientMessage(playerid, 0x9900CCFF, "/rp assassin to rp an assassin."); SendClientMessage(playerid, 0x9900CCFF, "/rplistgangs to see a list of gang members to rp."); return 1; } if (strcmp("/rplist", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x9900CCFF, "/rp grove to rp a grove."); SendClientMessage(playerid, 0x9900CCFF, "/rp ballas to rp a ballas."); SendClientMessage(playerid, 0x9900CCFF, "/rp azteca to rp an azteca."); SendClientMessage(playerid, 0x9900CCFF, "/rp vagos to rp a vagos."); SendClientMessage(playerid, 0x9900CCFF, "/rp danang to rp a danang boy."); SendClientMessage(playerid, 0x9900CCFF, "/rp rifa to rp a rifa gang member."); SendClientMessage(playerid, 0x9900CCFF, "/rp triad to rp a triad."); SendClientMessage(playerid, 0x9900CCFF, "/rplist to see a list of special forces to rp."); return 1; } if (strcmp("/rp cop", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFF0000FF, "You are now rping a cop."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a Cop.",name); SendClientMessageToAll(0xFF0000FFFF, string); SetPlayerColor(playerid, 0x0000FFFF); SetPlayerSkin(playerid, 280); GivePlayerWeapon(playerid, 3, 1); GivePlayerWeapon(playerid, 24, 1337); return 1; } if (strcmp("/rp swat", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x0000FFFF, "You are now rping a swat."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a Swat.",name); SendClientMessageToAll(0x0000FFFF, string); SetPlayerColor(playerid, 0x0000FFFF); SetPlayerSkin(playerid, 285); GivePlayerWeapon(playerid, 31, 1337); return 1; } if (strcmp("/rp fbi", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x9900CCFF, "You are now rping a fbi agent."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a fbi agent.",name); SendClientMessageToAll(0x9900CCFF, string); SetPlayerColor(playerid, 0x9900CCFF); SetPlayerSkin(playerid, 165); // if you want a real fbi skin replace 165 with 286. GivePlayerWeapon(playerid, 25, 1337); return 1; } if (strcmp("/rp firefighter", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFF0000FF, "You are now rping a fire fighter."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a fire fighter.",name); SendClientMessageToAll(0xFF0000FF, string); SetPlayerColor(playerid, 0xFF0000FF); SetPlayerSkin(playerid, 279); GivePlayerWeapon(playerid, 42, 1337); return 1; } if (strcmp("/rp medic", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x33CCFFFF, "You are now rping a medic."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a medix.",name); SendClientMessageToAll(0x33CCFFFF, string); SetPlayerColor(playerid, 0x33CCFFFF); SetPlayerSkin(playerid, 274); return 1; } if (strcmp("/rp assassin", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x000000FF, "You are now rping an assassin."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing an assassin.",name); SendClientMessageToAll(0x000000FF, string); SetPlayerColor(playerid, 0x000000FF); SetPlayerSkin(playerid, 279); GivePlayerWeapon(playerid, 23, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } if (strcmp("/rp grove", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x00CC00FF, "You are now rping a grove foo."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a grove.",name); SendClientMessageToAll(0x00CC00FF, string); SetPlayerColor(playerid, 0x00CC00FF); SetPlayerSkin(playerid, 106); GivePlayerWeapon(playerid, 22, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } if (strcmp("/rp ballas", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x000000FF, "You are now rping a balla foo."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a ballas.",name); SendClientMessageToAll(0x000000FF, string); SetPlayerColor(playerid, 0x000000FF); SetPlayerSkin(playerid, 104); GivePlayerWeapon(playerid, 23, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } if (strcmp("/rp azteca", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x66FFFFFF, "You are now rping an azteca foo."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing an azteca.",name); SendClientMessageToAll(0x66FFFFFF, string); SetPlayerColor(playerid, 0x66FFFFFF); SetPlayerSkin(playerid, 115); GivePlayerWeapon(playerid, 23, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } if (strcmp("/rp vagos", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFFFF00FF, "You are now rping a vagos foo."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a vagos.",name); SendClientMessageToAll(0xFFFF00FF, string); SetPlayerColor(playerid, 0xFFFF00FF); SetPlayerSkin(playerid, 109); GivePlayerWeapon(playerid, 23, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } if (strcmp("/rp danang", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFFCCFFFF, "You are now rping a danang pussy."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a danang.",name); SendClientMessageToAll(0xFFCCFFFF, string); SetPlayerColor(playerid, 0xFFCCFFFF); SetPlayerSkin(playerid, 122); GivePlayerWeapon(playerid, 23, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } if (strcmp("/rp rifa", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0x33FFFFFF, "You are now rping a rifa foo."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a rifa.",name); SendClientMessageToAll(0x33FFFFFF, string); SetPlayerColor(playerid, 0x33FFFFFF); SetPlayerSkin(playerid, 173); GivePlayerWeapon(playerid, 23, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } if (strcmp("/rp triad", cmdtext, true, 10) == 0) { SendClientMessage(playerid, 0xFFFF15FF, "You are now rping a triad foo."); new name[MAX_PLAYER_NAME], string[44]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "%s Is now RPing a triad.",name); SendClientMessageToAll(0xFFFF15FF, string); SetPlayerColor(playerid, 0xFFFF15FF); SetPlayerSkin(playerid, 120); GivePlayerWeapon(playerid, 23, 1337); GivePlayerWeapon(playerid, 4, 1); return 1; } return 0; } #endif