SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 08/12/2019, 12:50 AM   #11
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: OnPlayerConnect problem

Problem kind of solved, i just placed:
PHP Code:
if(pInfo[playerid][IsBanned] ==1); 
under everything what was in OPC
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R

Last edited by Mattski; 08/12/2019 at 01:30 AM.
Mattski is offline   Reply With Quote
Old 08/12/2019, 01:32 AM   #12
4D1L
Big Clucker
 
Join Date: Mar 2016
Location: United Kingdom
Posts: 73
Reputation: 22
Default Re: OnPlayerConnect problem

Why not check if the player is banned once you have loaded that particular of information and then show your textdraws?

i.e
pawn Code:
...
pInfo[playerid][IsBanned] = dini_Int(File,"IsBanned");
if(pInfo[playerid][IsBanned] = 1)
{
    #ShowTextdraws#
}
4D1L is offline   Reply With Quote
Old 08/12/2019, 02:26 AM   #13
Mattski
Big Clucker
 
Mattski's Avatar
 
Join Date: Oct 2019
Location: Under Your Moms Bed
Posts: 143
Reputation: 1
Default Re: OnPlayerConnect problem

Quote:
Originally Posted by 4D1L View Post
Why not check if the player is banned once you have loaded that particular of information and then show your textdraws?

i.e
pawn Code:
...
pInfo[playerid][IsBanned] = dini_Int(File,"IsBanned");
if(pInfo[playerid][IsBanned] = 1)
{
    #ShowTextdraws#
}
That is basically what i did
__________________

MY WORK:
Player Name Tags - https://pastebin.com/xncXzr0R
Mattski 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with OnPlayerConnect sjames Scripting Help 1 09/08/2015 10:24 PM
OnPlayerConnect problem rutger188 Scripting Help 1 06/04/2014 04:18 PM
OnPlayerConnect Problem ??? AwokenNeoX Scripting Help 2 03/11/2012 09:53 PM
OnPlayerConnect Problem... Unknown123 Help Archive 10 06/03/2011 02:05 AM
OnPlayerConnect Problem ( 0.3a ) Micko9 Help Archive 4 29/01/2010 10:08 AM


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


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