SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 08/10/2017, 12:21 PM   #1
SubGames
Little Clucker
 
Join Date: Jul 2016
Posts: 26
Reputation: 0
Default Req

I Want to Add Score Limit to Chat on my server, 20 Score Limit to Chat or PM, How Can i do so!
Plz Help and tell if this is the right section, I don't know where to demand things!
SubGames is offline   Reply With Quote
Old 08/10/2017, 12:39 PM   #2
Mister0
Huge Clucker
 
Mister0's Avatar
 
Join Date: Aug 2015
Posts: 220
Reputation: 19
Default Re: Req

if I get understand right
Code:
if(GetPlayerScore(playerid)>20) return SendclientMessage(playerid,-1,"Your level is to high");
Just add this on your command or where you need to put your restriction
Mister0 is offline   Reply With Quote
Old 08/10/2017, 12:59 PM   #3
Mr.Vince™
Big Clucker
 
Mr.Vince™'s Avatar
 
Join Date: Apr 2017
Location: Islamabad,Pakistan
Posts: 53
Reputation: 5
Default Re: Req

Quote:
Originally Posted by SubGames View Post
Plz Help and tell if this is the right section, I don't know where to demand things!
Yes You Are On Right Section..
Mr.Vince™ is offline   Reply With Quote
Old 08/10/2017, 01:04 PM   #4
FreAkeD
Gangsta
 
FreAkeD's Avatar
 
Join Date: May 2012
Location: Australia
Posts: 630
Reputation: 87
Default Re: Req

@Mister0 I think he means that if a players score is under 20, he shouldn't be able to use the chat.

http://wiki.sa-mp.com/wiki/Control_Structures#Operators
http://wiki.sa-mp.com/wiki/GetPlayerScore
http://wiki.sa-mp.com/wiki/OnPlayerText
FreAkeD is offline   Reply With Quote
Old 08/10/2017, 01:17 PM   #5
Mr.Vince™
Big Clucker
 
Mr.Vince™'s Avatar
 
Join Date: Apr 2017
Location: Islamabad,Pakistan
Posts: 53
Reputation: 5
Default Re: Req

He means When a player newly regsiter on a server he needs 20 score to talk and pm
Mr.Vince™ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 03:42 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.