pawn Код:
CMD:r(playerid,params[])
{
//police Radio
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282) //replace this with your Cop Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-1) 1-259:%s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288) SendClientMessage(i,COLOR_ROYALBLUE,msg); // same as above for skins
}
//police Radio
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 281) //replace this with your Cop Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-1) 1-269 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288) SendClientMessage(i,COLOR_ROYALBLUE,msg); // same as above for skins
}
//police Radio
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 283) //replace this with your Cop Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-1) 1-283 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288) SendClientMessage(i,COLOR_ROYALBLUE,msg); // same as above for skins
}
//police Radio
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 288) //replace this with your Cop Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-1) 1-288 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288) SendClientMessage(i,COLOR_ROYALBLUE,msg); // same as above for skins
}
if(GetPlayerSkin(playerid) == 279) //replace this with your FF/EMS Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-9) E-279 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i,COLOR_CRIMSON,msg); // same as above for skins
}
if(GetPlayerSkin(playerid) == 277) //replace this with your FF/EMS Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-9) E-277 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i,COLOR_CRIMSON,msg); // same as above for skins
}
if(GetPlayerSkin(playerid) == 274) //replace this with your FF/EMS Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-9) M-274 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i,COLOR_CRIMSON,msg); // same as above for skins
}
if(GetPlayerSkin(playerid) == 278) //replace this with your FF/EMS Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-9) E-278 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i,COLOR_CRIMSON,msg); // same as above for skins
}
if(GetPlayerSkin(playerid) == 276) //replace this with your FF/EMS Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-9) M-276 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i,COLOR_CRIMSON,msg); // same as above for skins
}
if(GetPlayerSkin(playerid) == 275) //replace this with your FF/EMS Skin. If you have more than use use it as if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-9) C-275 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) SendClientMessage(i,COLOR_CRIMSON,msg); // same as above for skins
}
// tow truckers radio
if(GetPlayerSkin(playerid) == 50) //replace this with your Cop Skins+FF/EMS Skins. if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"((Tow Truckers Radio)) %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 50) SendClientMessage(i,COLOR_GOLD,msg); // same as above for skins
}
// taxi drivers radio
if(GetPlayerSkin(playerid) == 142) //replace this with your Cop Skins+FF/EMS Skins. if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(Radio Kaufman) Driver %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 142) SendClientMessage(i,COLOR_GOLD,msg); // same as above for skins
}
// public workers
if(GetPlayerSkin(playerid) == 27 || GetPlayerSkin(playerid) == 260) //replace this with your Cop Skins+FF/EMS Skins. if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /r [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(DPWCOM) %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
if(GetPlayerSkin(i) == 27 || GetPlayerSkin(playerid) == 260) SendClientMessage(i,COLOR_GOLD,msg); // same as above for skins
}
return 1;
}
CMD:er(playerid,params[])
{
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 ||GetPlayerSkin(playerid) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276) //replace this with your Cop Skins+FF/EMS Skins. if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286...)
{
if(isnull(params)) return SendClientMessage(playerid,-1,"Usage: /er [text]");
new name[24],msg[128];
GetPlayerName(playerid,name,24);
format(msg,128,"(CH-16) ER-349 %s(%d): %s",name,playerid, params);
for(new i=0;i<MAX_PLAYERS;i++)
{if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288 ||GetPlayerSkin(i) == 278 || GetPlayerSkin(i) == 275 || GetPlayerSkin(i) == 279 || GetPlayerSkin(i) == 277 || GetPlayerSkin(i) == 274 || GetPlayerSkin(i) == 276) {SendClientMessage(i,COLOR_MEDIUMPURPLE,msg);}} // same as above for skins
}
return 1;
}
pawn Код:
CMD:911(playerid,params[])
{
//911 system
if(isnull(params)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"Usage: /911 [Message and Location]");
new name[24];
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(playerid,name,24);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
SendClientMessage(playerid, COLOR_GOLD, "[INFO]You have just called 911. Please remain at your location and wait.");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288 ||GetPlayerSkin(i) == 278 || GetPlayerSkin(i) == 275 || GetPlayerSkin(i) == 279 || GetPlayerSkin(i) == 277 || GetPlayerSkin(i) == 274 || GetPlayerSkin(i) == 276)
{
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "DISPATCH", sendername, params);
SendClientMessageToAll(COLOR_ROYALBLUE, string);
format(string, sizeof(string), "Be advised, the following is a 911 call.", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "Units aviable please respond.", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "CALLER: %s ~ INFO & LOCATION: %s", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
}
}
return 1;
}