A Command For Only A Class

Started by Yankee, May 27, 2017, 10:04 AM

Previous topic - Next topic

Yankee

Hi guys,how can i make a command for only one class.For example only medic team can use a /heal code and /heal other players.Can anyone give me ?

EK.IceFlake

if (player.Team != medicteamid) return MessagePlayer(player, "One does not simply heal other people without equipment.");Use it if you know how to, otherwise stick to playing.

Yankee

Quote from: EK.IceFlake on May 27, 2017, 10:10 AMif (player.Team != medicteamid) return MessagePlayer(player, "One does not simply heal other people without equipment.");Use it if you know how to, otherwise stick to playing.
Thanks mate.