[GM-ADDON] Most simple non id cuff ever -
JoeDaDude - 11.06.2009
Ok,
This is the most simpliest cuff ever,
You may want to use it for your rp that is not GODFATHER,
Dont flame as this is for new scripters who havent much knowledge,
The most easiest command ever in my opinion,
pawn Code:
if(!strcmp("/cuff 0", cmdtext, true))
{
if(playerid == 0)
{
SendClientMessage(0, 0xFFFFFFFF, "You have been cuffed and cannot move");
TogglePlayerControllable(0,0);
}
return 1;
}
if(!strcmp("/uncuff 0", cmdtext, true))
{
if(playerid == 0)
{
SendClientMessage(0, 0xFFFFFFFF, "You have been uncuffed");
TogglePlayerControllable(0,1);
}
return 1;
}
Re: [GM-ADDON] Most simple non id cuff ever -
Correlli - 11.06.2009
Only player with id 0 will be able to use this. And this should be posted in Useful commands topic.
Re: [GM-ADDON] Most simple non id cuff ever -
NeRoSiS - 11.06.2009
A) Wrong section
B) It wont work
C) You can only use it on ID 0 and you must be ID 0? WTF?
Re: [GM-ADDON] Most simple non id cuff ever -
JoeDaDude - 11.06.2009
Sorry i edited another command into that and forgot to remove the if(playerid
And you can easily edit it to whatever you want
Re: [GM-ADDON] Most simple non id cuff ever -
Correlli - 11.06.2009
You don't even have a IsPlayerConnected check for playerid 0.
Re: [GM-ADDON] Most simple non id cuff ever -
JoeDaDude - 11.06.2009
Its simple! And sorry only just realised its wrong section...
Re: [GM-ADDON] Most simple non id cuff ever -
NeRoSiS - 11.06.2009
No disrespect meant, but this could be coded in a matter of seconds, maybe a minute tops to code it flly functional for all ID's.
Try out scripting a bit more and make yourself more familiar with pawn before making a release

It's always good to ensure you shine on your first one.
Re: [GM-ADDON] Most simple non id cuff ever -
JoeDaDude - 11.06.2009
Hmm,
Lets see,
Crap internet,
Crap computer,
Making a better one is a no no right now,
Its for beginners and for them to edit this more
Re: [GM-ADDON] Most simple non id cuff ever -
NeRoSiS - 12.06.2009
You dont internet to script, or to test a script in fact.
You can still script with a crap computer, I am for a week as my current one fried.