[Quick help] Making an FS work only for selected skin ID's.
#9

Try this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    if(GetPlayerSkin(playerid) == 280 || if(GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 284 || GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 286)
    {
        if (strcmp(cmd,"/createstrip",true) == 0) {
            new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
            GetPlayerPos(playerid, plocx, plocy, plocz);
            GetPlayerFacingAngle(playerid,ploca);
            CreateStrip(plocx,plocy,plocz,ploca);
            return 1;
        }
        else if (strcmp(cmd,"/removestrip",true) == 0) {
            DeleteClosestStrip(playerid);
            return 1;
        }
        else if (strcmp(cmd,"/removeallstrip",true) == 0) {
            DeleteAllStrip();
            return 1;
        }
    }
    return 0;
}
Edit: User above was faster!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)