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

Replace
pawn Код:
if(GetPlayerSkin(playerid) == 280); // It shoudn't be with ";"
With
pawn Код:
if(GetPlayerSkin(playerid) == 280)
========
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new cmd[256];
    new idx;
    cmd = strtok(cmdtext, idx);
    if(GetPlayerSkin(playerid) == 280)
    {
        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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)