Make for police skins only
#2

Use this

pawn Код:
forward IsCopSkin(playerid);
public IsCopSkin(playerid)
{
    switch(GetPlayerSkin(playerid))
    {
      case 280, 281, 282, 283, 284, 285, 286, 287, 288, 265, 266, 267: return 1;
    }
    return 0;
}
Like this....

pawn Код:
if (strcmp(cmd,"/createstrip",true) == 0)
{
    if(IsCopSkin(playerid))
    {
        new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
        GetPlayerPos(playerid, plocx, plocy, plocz);
        GetPlayerFacingAngle(playerid,ploca);
        CreateStrip(plocx,plocy,plocz,ploca);
    }
    return 1;
}
Reply


Messages In This Thread
Make for police skins only - by jakejohnsonusa - 03.10.2012, 05:20
Re: Make for police skins only - by cyber_punk - 03.10.2012, 06:04
Re: Make for police skins only - by XtremeR - 03.10.2012, 06:06
Re: Make for police skins only - by cyber_punk - 03.10.2012, 06:08
Re: Make for police skins only - by XtremeR - 03.10.2012, 06:14

Forum Jump:


Users browsing this thread: 1 Guest(s)