13.12.2012, 20:27
[TrashReport's]/tr [Reason]
2. /sendtoplayerveh [Just veh , Not the veh he own it]
3. /sendplayertohishouse [To send player to his house]
4. make /cuff will freeze the guy cuffed.
[CMD /cuff Code] :
5. make tazing and cuffing if somone quit from game in the middle he get an prison OOC for 30 minutes
On CMD /cuff you can see from number 4 the code of /cuff
Here's the code of /tazer :
6. Make Cmd give Full Set Weapon's to player [ To give Spas12 , M4 , MP5 , Deagle , Sniper ]
7. Make CMD give FireWork's [ To give FireWork's ]
8. Fix the /drag : Here's the code :
Listen I'll thank you very much if you can , If not atleast do one of this list I'm asking , Ty.
2. /sendtoplayerveh [Just veh , Not the veh he own it]
3. /sendplayertohishouse [To send player to his house]
4. make /cuff will freeze the guy cuffed.
[CMD /cuff Code] :
Код:
CMD:cuff(playerid, params[]) { if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2 || PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5 || (PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pDivision] == 2)) { if(GetPVarInt(playerid, "Injured") == 1) { SendClientMessageEx(playerid, COLOR_GREY, "You can't do this right now."); return 1; } new string[128], giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /cuff [playerid]"); if(IsPlayerConnected(giveplayerid)) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { if(giveplayerid == playerid) { SendClientMessageEx(playerid, COLOR_GREY, "You cannot cuff yourself!"); return 1; } if(PlayerCuffed[giveplayerid] == 1 || GetPlayerSpecialAction(giveplayerid) == SPECIAL_ACTION_HANDSUP) { format(string, sizeof(string), "* You have been handcuffed by %s.", GetPlayerNameEx(playerid)); SendClientMessageEx(giveplayerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You handcuffed %s, till uncuff.", GetPlayerNameEx(giveplayerid)); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s handcuffs %s, tightening the cuffs securely.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3); TogglePlayerControllable(giveplayerid, 1); ClearAnimations(giveplayerid); SetPlayerSpecialAction(giveplayerid, SPECIAL_ACTION_CUFFED); PlayerCuffed[giveplayerid] = 2; SetPVarInt(giveplayerid, "PlayerCuffed", 2); SetPVarInt(giveplayerid, "IsFrozen", 0); //Frozen[giveplayerid] = 1; PlayerCuffedTime[giveplayerid] = 300; } else { SendClientMessageEx(playerid, COLOR_GREY, "That player isn't restrained!"); return 1; } } else { SendClientMessageEx(playerid, COLOR_GREY, "That player isn't near you."); return 1; } } else { SendClientMessageEx(playerid, COLOR_GREY, "Invalid player specified."); return 1; } } else { SendClientMessageEx(playerid, COLOR_GREY, "You're not a law enforcement officer."); } return 1; }
On CMD /cuff you can see from number 4 the code of /cuff
Here's the code of /tazer :
Код:
CMD:tazer(playerid, params[]) { if(gTeam[playerid] == 2 || IsACop(playerid) || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || (PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pDivision] == 2) || (PlayerInfo[playerid][pMember] == 9 && PlayerInfo[playerid][pDivision] == 1)) { new string[128]; if(PlayerInfo[playerid][pConnectTime] < 2 || PlayerInfo[playerid][pWRestricted] > 0) return SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot use this as you are currently restricted from possessing weapons!"); if(IsPlayerInAnyVehicle(playerid)) { SendClientMessageEx(playerid, COLOR_GREY, "You can't do this while you're in a vehicle."); return 1; } if(GetPVarInt(playerid, "IsInArena") >= 0) { SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this right now, you are in a arena!"); return 1; } if(GetPVarInt( playerid, "EventToken") != 0) { SendClientMessageEx(playerid, COLOR_GREY, "You can't use the tazer while you're in an event."); return 1; } if(PlayerCuffedTime[playerid] > 0) { SendClientMessageEx(playerid, COLOR_GREY, "You can't do this right now."); return 1; } if(GetPVarInt(playerid, "Injured") == 1) { SendClientMessageEx(playerid, COLOR_GREY, "You can't do this right now."); return 1; } if(PlayerInfo[playerid][pJailed] > 0) { SendClientMessageEx(playerid, COLOR_WHITE, "You cannot use this in jail/prison."); return 1; } if(PlayerCuffed[playerid] >= 1) { SendClientMessageEx(playerid, COLOR_WHITE, "You cannot use this while tazed/cuffed."); return 1; } if(pTazer[playerid] == 0) { pTazerReplace[playerid] = PlayerInfo[playerid][pGuns][2]; if(PlayerInfo[playerid][pGuns][2] != 0) RemovePlayerWeapon(playerid, PlayerInfo[playerid][pGuns][2]); format(string, sizeof(string), "* %s unholsters their tazer.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerValidWeapon(playerid, 23, 60000); pTazer[playerid] = 1; } else { RemovePlayerWeapon(playerid, 23); GivePlayerValidWeapon(playerid, pTazerReplace[playerid], 60000); format(string, sizeof(string), "* %s holsters their tazer.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); pTazer[playerid] = 0; } } else { SendClientMessageEx(playerid, COLOR_GREY, " You are not a Cop / FBI / Coastguard!"); return 1; } return 1; }
7. Make CMD give FireWork's [ To give FireWork's ]
8. Fix the /drag : Here's the code :
Код:
CMD:drag(playerid, params[]) { if(IsACop(playerid)) { new string[128], giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "USAGE: /drag [playerid]"); if(IsPlayerConnected(giveplayerid)) { if(GetPVarInt(giveplayerid, "PlayerCuffed") == 2) { if(IsPlayerInAnyVehicle(playerid)) return SendClientMessageEx(playerid, COLOR_WHITE, " You must be out of the vehicle to use this command."); if(GetPVarInt(giveplayerid, "BeingDragged") == 1) { SendClientMessageEx(playerid, COLOR_WHITE, " That player is already being dragged. "); return 1; } new Float:dX, Float:dY, Float:dZ; GetPlayerPos(giveplayerid, dX, dY, dZ); if(!IsPlayerInRangeOfPoint(playerid, 5.0, dX, dY, dZ)) { SendClientMessageEx(playerid, COLOR_GRAD2, " That suspect is not near you."); return 1; } format(string, sizeof(string), "* %s has is now dragging you.", GetPlayerNameEx(playerid)); SendClientMessageEx(giveplayerid, COLOR_WHITE, string); format(string, sizeof(string), "* You are now dragging %s, you may move them now.", GetPlayerNameEx(giveplayerid)); SendClientMessageEx(playerid, COLOR_WHITE, string); format(string, sizeof(string), "* %s grabs ahold of %s and begins to move them.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessageEx(playerid, COLOR_WHITE, "You are now dragging the suspect, press the '{AA3333}FIRE{FFFFFF}' button to stop."); SetPVarInt(giveplayerid, "BeingDragged", 1); SetPVarInt(playerid, "DraggingPlayer", giveplayerid); } else { SendClientMessageEx(playerid, COLOR_WHITE, " The specified player is not cuffed !"); } } } else { SendClientMessageEx(playerid, COLOR_GREY, " You are not a LEO ! "); return 1; } return 0; }
Listen I'll thank you very much if you can , If not atleast do one of this list I'm asking , Ty.