|
|
#1 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Dec 2011
Location: Republic Of Ireland
Posts: 461
Reputation: 70
|
Hello, can anybody tell me the coding to make the new cuff system in 0.3e? like the hands behind their back and when you jump in cuffs you fall and other stuff regarding it? thanks
|
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Feb 2012
Location: Norway
Posts: 314
Reputation: 23
|
Put this whereever you want it.. (or not really) but you can make a cmd out of it.
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED); |
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Aug 2011
Location: Grønvollfoss in Norway with a shotgun
Posts: 168
Reputation: 18
|
This should work as a command i think
![]() pawn Code:
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2011
Location: Svea Rike
Posts: 1,529
Reputation: 61
|
pawn Code:
|
|
|
|
|
|
#5 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Dec 2011
Location: Republic Of Ireland
Posts: 461
Reputation: 70
|
Anyone got a code for /uncuff so that it removes the cuffs when I do /uncuff?
|
|
|
|
|
|
#6 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2011
Location: Svea Rike
Posts: 1,529
Reputation: 61
|
Code:
}
if(strcmp(cmd, "/uncuff", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFaction] == 1|| PlayerInfo[playerid][pFaction] == 0)
{
if(CopOnDuty[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You are not on duty");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /uncuff [playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerCuffed[giveplayerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "That player is not cuffed");
return 1;
}
if(giveplayerid == playerid)
{
SendClientMessage(playerid, COLOR_GREY, "You can not uncuff yourself");
return 1;
}
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
format(string, sizeof(string), "You have been uncuffed by %s", GetPlayerNameEx(playerid));
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "You have uncuffed %s", GetPlayerNameEx(giveplayerid));
SendClientMessage(playerid, COLOR_WHITE, string);
PlayerCuffed[giveplayerid] = 0;
SetPlayerSpecialAction(giveplayerid,SPECIAL_ACTION_NONE);
RemovePlayerAttachedObject(giveplayerid,0);
PlayerPlayerActionMessage(playerid,giveplayerid,15.0,"uncuffs");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "That player is not in range");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Playerid is not an active playerid");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Invalid faction");
}
}
return 1;
|
|
|
|
|
|
#7 | |
|
Huge Clucker
![]() ![]() ![]() Join Date: Dec 2011
Location: Republic Of Ireland
Posts: 461
Reputation: 70
|
Quote:
|
|
|
|
|
|
|
#8 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2011
Location: Svea Rike
Posts: 1,529
Reputation: 61
|
No problem, ask me if you need more help.
|
|
|
|
|
|
#9 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Dec 2011
Location: Republic Of Ireland
Posts: 461
Reputation: 70
|
|
|
|
|
|
|
#10 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Nov 2011
Location: Svea Rike
Posts: 1,529
Reputation: 61
|
Place this under
OnPlayerKeyStateChange pawn Code:
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FilterScript] Tazer/Cuff/Drag system good for RP | JhnzRep | Filterscripts | 8 | 29/03/2013 09:45 PM |
| /cuff | James_Bourne | Help Archive | 1 | 11/08/2011 08:37 AM |
| HELP NEED /CUFF | ironmenpr17 | Help Archive | 2 | 28/05/2011 03:23 AM |
| Cuff Tell Cop | hector_williams | Help Archive | 1 | 20/12/2009 01:05 AM |