DarkRP.PlayerUnWanted
Jump to navigation
Jump to search
ply (Player)
ply (Player)
This page refers to DarkRP 2.4.3. This information may be incorrect as of later versions. Check here for a up-to-date list of hooks. |
---|
Syntax[edit]
Description | Called when someone is not wanted anymore (by someone else) |
---|---|
Syntax |
GAMEMODE:PlayerUnWanted(Player ply, Player ply)
|
Returns | nil |
Arguments
The player who removed the wanted status
The player that was previously wanted
Examples[edit]
Description | The person who unwanted someone gets a message |
---|---|
Code | hook.Add( "PlayerUnWanted", "Freedom", function(ply, target)
ply:ChatPrint("You unwanted " .. target:Nick())
end)
|
Output | A message |