[Help] /cuff or /tie
#1

Hello,

I have a problem. I've readed all the tutorials about how to make a command but I still don't know how to make this one.
I know it's something with TogglePlayerControllable(playerid, toggle); but this is all I got..

Quote:

if(strcmp(cmdtext, "/tie", true) == 0)
{
if(gTeam[giveplayerid] != 4)
{
TogglePlayerControllable(playerid, 0)
SendClientMessage(playerid, COLOR_YELLOW, You are now tied up");
}
return 1;
}



if(strcmp(cmdtext, "/untie", true) == 0)
{
if(gTeam[giveplayerid] != 4)
{
TogglePlayerControllable(playerid, 1)
SendClientMessage(playerid, COLOR_YELLOW, You have been released.");
}
return 1;
}

Reply


Messages In This Thread
[Help] /cuff or /tie - by joeri55 - 09.06.2009, 20:35
Re: [Help] /cuff or /tie - by Klutty - 09.06.2009, 20:36
Re: [Help] /cuff or /tie - by miokie - 09.06.2009, 20:41
Re: [Help] /cuff or /tie - by joeri55 - 09.06.2009, 21:24
Re: [Help] /cuff or /tie - by joeri55 - 09.06.2009, 21:52
Re: [Help] /cuff or /tie - by joeri55 - 09.06.2009, 22:33

Forum Jump:


Users browsing this thread: 1 Guest(s)