03.10.2012, 06:04
Use this
Like 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;
}
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;
}