All pastes #736483 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-10-14 16:14 UTC
rendered paste body
//-------------------------[/cuff and /uncuff]----------------------------------

if(strcmp(cmd, "/cuff", true) == 0) {
		if(GetPlayerState(playerid) == 2) {
     for(new i=0; i<MAX_PLAYERS; i++) {
          if(GetPlayerState(i) == PLAYER_STATE_PASSENGER && GetDistanceBetweenPlayers(i,playerid) < 10) {
               TogglePlayerControllable(i,0);
               if (gTeam[playerid] == 2)
               {
               GameTextForPlayer(i, "~r~You have been cuffed", 3000, 4);
               SendClientMessage(playerid, COLOR_DBLUE, "You have cuffed the passenger, so he won't go anywhere.");
               }
               else
               {
               GameTextForPlayer(i, "~r~You have been roped to the chair", 3000, 4);
               SendClientMessage(playerid, COLOR_DBLUE, "You have tied the passenger to the chair, so he won't go anywhere.");
			   }
   }
}
}
               return 1;
}

if(strcmp(cmd, "/uncuff", true) == 0) {
		if(GetPlayerState(playerid) == 2) {
     for(new i=0; i<MAX_PLAYERS; i++) {
          if(GetPlayerState(i) == PLAYER_STATE_PASSENGER && GetDistanceBetweenPlayers(i,playerid) < 10) {
               TogglePlayerControllable(i,1);
               GameTextForPlayer(i, "~g~You have been uncuffed", 3000, 4);
               SendClientMessage(playerid, COLOR_DBLUE, "You have uncuffed the passenger.");
			   }
}
}
               return 1;
}