"kill all peds" button available only on server

This commit is contained in:
in0finite 2019-07-08 22:21:23 +02:00
parent 85fe74bacc
commit b8e93dce69

View file

@ -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