Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Connect and Disconnect Msgs");
- print(" Admin Weapons");
- print(" Made by Th3UnKnOwN");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- #endif
- public OnPlayerConnect(playerid)
- {
- new string[144], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00CED1}%s {FFFFFF}has Connected to the Server. {00CED1}(Joined)", name);
- SendClientMessageToAll(0xFFFFFFFF, string);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new string[144], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "{00CED1}%s {FFFFFF}has Disconnected from the Server. {00CED1} (Leaving)", name);
- SendClientMessageToAll(0xFFFFFFFF, string);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/aweaps", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- SendClientMessage(playerid,0xFFFF00AA,"[HANDGUNS]: /colt45 /sdcolt /deagle ");
- SendClientMessage(playerid,0xFFFF00AA,"[SHOTGUNS]: /shotgun /combat /sawnoff ");
- SendClientMessage(playerid,0xFFFF00AA,"[SMGs]: /mp5 /tec9 /uzi ");
- SendClientMessage(playerid,0xFFFF00AA,"[ASSAULT]: /ak47 /m4");
- SendClientMessage(playerid,0xFFFF00AA,"[BOLT ACTION]: /sniper /rifle ");
- SendClientMessage(playerid,0xFFFF00AA,"[OVERPOWERED]: /flame /bazooka /heat /minigun");
- return 1;
- }
- if (strcmp("/colt45", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 22, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Colt45. (Weapon ID 22)");
- return 1;
- }
- if (strcmp("/sdcolt", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 23, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Silenced Colt45. (Weapon ID 23)");
- return 1;
- }
- if (strcmp("/deagle", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 24, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Desert Eagle. (Weapon ID 24)");
- return 1;
- }
- if (strcmp("/shotgun", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 25, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Typical Shotgun. (Weapon ID 25)");
- return 1;
- }
- if (strcmp("/combat", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 27, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Combat Shotgun. (Weapon ID 27)");
- return 1;
- }
- if (strcmp("/sawnoff", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 26, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Sawnoff Shotgun. (Weapon ID 26)");
- return 1;
- }
- if (strcmp("/mp5", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 29, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Mp5. (Weapon ID 29)");
- return 1;
- }
- if (strcmp("/tec9", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 32, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Tec9. (Weapon ID 32)");
- return 1;
- }
- if (strcmp("/uzi", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 28, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Uzi. (Weapon ID 28)");
- return 1;
- }
- if (strcmp("/ak47", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 30, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the AK47. (Weapon ID 30)");
- return 1;
- }
- if (strcmp("/m4", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 31, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the M4A1. (Weapon ID 31)");
- return 1;
- }
- if (strcmp("/sniper", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 34, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Sniper Rifle. (Weapon ID 34)");
- return 1;
- }
- if (strcmp("/rifle", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 33, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Hunting Rifle. (Weapon ID 33)");
- return 1;
- }
- if (strcmp("/flame", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 37, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Flame Thrower. (Weapon ID 37)");
- return 1;
- }
- if (strcmp("/bazooka", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 35, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the RPG. (Weapon ID 35)");
- return 1;
- }
- if (strcmp("/heat", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 36, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Heat Seeking Rocket Launcher. (Weapon ID 36)");
- return 1;
- }
- if (strcmp("/minigun", cmdtext, true, 10) == 0)
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- GivePlayerWeapon(playerid, 38, 9999);
- SendClientMessage(playerid,0x33AA33AA,"You have spawned the Badass Minigun. (Weapon ID 38)");
- return 1;
- }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment