Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <zcmd>
- #include <color>
- #include <sscanf2>
- #include <foreach>
- new nob[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- nob[playerid] = 0;
- return 1;
- }
- stock ProxDetector(Float:radi, playerid, string[],color)
- {
- new Float:x,Float:y,Float:z;
- GetPlayerPos(playerid,x,y,z);
- foreach(Player,i)
- {
- if(IsPlayerInRangeOfPoint(i,radi,x,y,z))
- {
- SendClientMessage(i,color,string);
- }
- }
- }
- CMD:nob(playerid, params[])
- {
- if(nob[playerid] == 0)
- {
- nob[playerid] = 1;
- SendClientMessage(playerid, COLOR_YELLOW, "/b Telah Di Perbolehkan");
- }
- else
- {
- nob[playerid] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "/b Tidak Di Perbolehkan");
- }
- return 1;
- }
- CMD:b(playerid, params[])
- {
- if(nob[playerid] == 0)
- {
- SendClientMessage(playerid, COLOR_YELLOW, "Kau Tidak Boleh /b Full Roleplay");
- }
- else
- {
- new pname[MAX_PLAYER_NAME];
- GetPlayerName(playerid,pname, sizeof(pname));
- new string[1280];
- if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /b [OOC CHAT");
- format(string, sizeof(string), "(( Local OOC Chat %s : %s ))",pname, params);
- ProxDetector(30.0, playerid, string, -1);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment