911 phone help
#3

in this case you have to loop it...for example
pawn Код:
new name[MAX_PLAYER_NAME], string[48];
                   GetPlayerName(playerid, name, sizeof(name));
                 format(string, sizeof(string), " %s Called a medic.Closest unit respond.", name );
                  for(new i = 0; i ! = MAX_PLAYERS;i ++)
                   {
                          if(GetPlayerSkin(i) == 275) return SendClientMessage(i,-1,string);
                   }
you can use it and replace for police, and Fire dept , only editing instead of this
Код:
    format(string, sizeof(string), " %s Called a medic.Closest unit respond.", name );
this
Код:
           format(string, sizeof(string), " Your message,",name);
and instead of
Код:
if(GetPlayerSkin(i) == 275) return SendClientMessage(i,-1,string);
this
Код:
if(GetPlayerSkin(i) == yourskin) return SendClientMessage(i,-1,string);
Reply


Messages In This Thread
911 phone help - by jimis - 17.07.2012, 09:16
Re: 911 phone help - by jimis - 17.07.2012, 09:39
Re: 911 phone help - by XStormiest - 17.07.2012, 09:46
Re: 911 phone help - by jimis - 17.07.2012, 10:26

Forum Jump:


Users browsing this thread: 1 Guest(s)