[GM-ADDON] Most simple non id cuff ever
#1

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;
}
Reply
#2

Only player with id 0 will be able to use this. And this should be posted in Useful commands topic.
Reply
#3

A) Wrong section
B) It wont work
C) You can only use it on ID 0 and you must be ID 0? WTF?
Reply
#4

Sorry i edited another command into that and forgot to remove the if(playerid
And you can easily edit it to whatever you want
Reply
#5

You don't even have a IsPlayerConnected check for playerid 0.
Reply
#6

Its simple! And sorry only just realised its wrong section...
Reply
#7

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.
Reply
#8

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
Reply
#9

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)