mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
"kill all peds" button available only on server
This commit is contained in:
parent
85fe74bacc
commit
b8e93dce69
1 changed files with 7 additions and 4 deletions
|
@ -60,11 +60,14 @@ namespace SanAndreasUnity.UI {
|
|||
widthPercsButtons, buttonSpacing );
|
||||
}
|
||||
|
||||
// button to kill all peds
|
||||
if (GUILayout.Button ("Kill all peds", GUILayout.Width (100))) {
|
||||
KillAllPeds ();
|
||||
if (NetUtils.IsServer)
|
||||
{
|
||||
// button to kill all peds
|
||||
if (GUILayout.Button ("Kill all peds", GUILayout.Width (100))) {
|
||||
KillAllPeds ();
|
||||
}
|
||||
GUILayout.Space (5);
|
||||
}
|
||||
GUILayout.Space (5);
|
||||
|
||||
|
||||
// page view numbers
|
||||
|
|
Loading…
Reference in a new issue