Help With Cuff and Uncuff Command
#3

I figured it was something like that, thanks
i think you forgot
a return value
if(!strcmp(cmd,"/uncuff",true))
{
if(gTeam[playerid] == 2 || IsACop(playerid))
{
tmp=strtok(cmdtext,idx);
if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_GREY,"USAGE: /uncuff playerid");
giveplayerid = ReturnUser(tmp);
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid,COLOR_GREY,"Invalid player id.");
TogglePlayerControllable(giveplayerid,1);
GameTextForPlayer(giveplayerid, "~y~ You have been Uncuffed!",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)