10.01.2012, 12:25
Please i cant fix this: all can see the message and not just the skins
+REP! BUT FIX PLEASEEEEEEEEE
pawn Код:
CMD:911(playerid,params[])
{
//911 system
if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Usage: /911 [Message and Location]");
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
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) {
SendClientMessageToAll(COLOR_GREY, "-------------------------------------------------------------------------------------------------");
SendClientMessageToAll(COLOR_ROYALBLUE, "DISPATCH");
SendClientMessageToAll(COLOR_GREY, "Be advised, the following is a 911 call.");
SendClientMessageToAll(COLOR_GREY, "Units aviable please respond.");
format(string, sizeof(string), "CALLER: %s ~ INFO & LOCATION: %s", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
SendClientMessageToAll(COLOR_GREY, "-------------------------------------------------------------------------------------------------");
}
}
return 1;
}