06.03.2012, 15:22
Hl guys i got a prob, how i could reserve this command for these skins?:
COMMAND:
SKINS:
If i use this all the players can use but they see just "(MEGAPHONE) " So i will make this command usable just for police skins but all can see...
COMMAND:
pawn Код:
//Megaphone
CMD:m(playerid,params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE,"[SYNTAX]: /m [megaphone]");
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid,sendername,sizeof(sendername));
sendername[strfind(sendername,"_")] = ' ';
format(string, sizeof(string), "(MEGAPHONE) %s ", params);
ProxDetector(30.0, playerid, string, COLOR_RED, COLOR_RED, COLOR_RED, COLOR_RED, COLOR_RED);
return 1;
}
Код:
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288)