Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Player::emote(%player, %data, %skipSpam)
- {
- if(!isObject(%data))
- return;
- if(!%skipSpam)
- {
- if(getSimTime() - %player.lastVoiceTime < 1000)
- %player.voiceCount++;
- else if(getSimTime() - %player.lastVoiceTime > 10000)
- %player.voiceCount = 0;
- if(%player.voiceCount > 5)
- return;
- %player.lastVoiceTime = getSimTime();
- }
- //Code to do emote here
- }
Advertisement
Add Comment
Please, Sign In to add comment