Help With Cuff and Uncuff Command
#6

Quote:
Originally Posted by Steven82
Would it be possible to not make the commands with a team but make with a skin id?
yeah its possible


if(GetPlayerSkin(playerid) == 293)//293 is a skin

an e.g
Код:
if(!strcmp(cmd,"/cuff",true))
	{
	if(GetPlayerSkin(playerid) == 293) || IsACop(playerid))
	{
		tmp=strtok(cmdtext,idx);
		if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /cuff playerid");
		giveplayerid = ReturnUser(tmp);
		if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_GREY,"Invalid player id.");
		TogglePlayerControllable(giveplayerid,0);
		GameTextForPlayer(giveplayerid, "~y~ You have been Cuffed!",2500,3);
	}
	return true;
	}
Reply


Messages In This Thread
Help With Cuff and Uncuff Command - by hector_williams - 19.12.2009, 18:07
Re: Help With Cuff and Uncuff Command - by LarzI - 19.12.2009, 18:24
Re: Help With Cuff and Uncuff Command - by hector_williams - 19.12.2009, 18:29
Re: Help With Cuff and Uncuff Command - by LarzI - 19.12.2009, 20:00
Re: Help With Cuff and Uncuff Command - by Steven82 - 15.03.2010, 03:38
Re: Help With Cuff and Uncuff Command - by Deat_Itself - 15.03.2010, 05:30
Re: Help With Cuff and Uncuff Command - by Steven82 - 17.03.2010, 02:24

Forum Jump:


Users browsing this thread: 1 Guest(s)