Closed
#1

Could i make it instead of the set teams and other crap like set like a command i saw in cuff script to like

Isplayercop(then have the skin ids so i could just spawn as skin id's and have cop commands?)
Reply
#2



OnPlayerSpawn
skincheck[playerid] = GetPlayerSkin(playerid);

IsPlayerCop(playerid)
if(skincheck[playerid] == skinid || skincheck[playerid == skinid2]) etc etc etc{
return 1;
}
else return 0;
}

some incomplete code for you to go on there. should help
Reply
#3

sweet so this i could make instead of adding team great xD thank you.

EDIT: Sorry im a noob at script so could you create like how do i input the skins? And btw get many error when compiling sorry.
Reply
#4

OK. I used with skins too. This was how I did it

Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
	    {
		if(GetPlayerSkin(playerid) == 288) //change 288 to your skin
        {
	    SendClientMessage(playerid,0x33AA33AA,"Replace this sendclient message to whatever you need");
         }
		else {

 	    SendClientMessage(playerid, 0x33AA33AA, "You are not a cop");
	    }
		return 1;
        }
			}
That should work.
Reply
#5

Код:
if (strcmp("/command", cmdtext, true, 10) == 0)
	{
	if(GetPlayerSkin(playerid) == 288) //change 288 to your skin
	{
	SendClientMessage(playerid,0x33AA33AA,"Replace this sendclient message to whatever you need");
	}
	else {
	SendClientMessage(playerid, 0x33AA33AA, "You are not a cop");
	}
	return 1;
	}
remove one bracket after return 1;
Reply
#6

closed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)