SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/03/2019, 04:55 PM   #1
soobya
Little Clucker
 
Join Date: Mar 2017
Posts: 29
Reputation: 0
Default help please

i want to lock some teams for vips only but i dont know how when i try
get errors
can anyone help me please
soobya is offline   Reply With Quote
Old 12/03/2019, 08:29 PM   #2
SymonClash
Banned
 
Join Date: Dec 2018
Posts: 254
Reputation: 25
Default Re: help please

You need to give us more info about how your VIP system is structured.

Assmuing you're using gTeam and saving player variables in an enum, i would do it in this way:

pawn Code:
public OnPlayerRequestSpawn(playerid)
{
    if(gTeam[playerid] == YOUR_TEAM_NAME && Player[playerid][Vip] == 0)
    {
        GameTextForPlayer(playerid, "~w~You must be ~r~a VIP member to choose this team!", 3000, 3);
        return 0;
    }
    return 1;
}
SymonClash is offline   Reply With Quote
Old 14/03/2019, 04:55 PM   #3
soobya
Little Clucker
 
Join Date: Mar 2017
Posts: 29
Reputation: 0
Default Re: help please

Thank you
last help i want to make this post for spawn selectoin https://media.discordapp.net/attachm...400&height=300
this post code 729.4599,-1276.2576,17.6484,97.5051
and i want to full this
SetPlayerPos(playerid, );
SetPlayerFacingAngle(playerid, );
SetPlayerCameraPos(playerid, );
SetPlayerCameraLookAt(playerid, );
and thank you
soobya is offline   Reply With Quote
Old 14/03/2019, 08:32 PM   #4
PoniStar
Huge Clucker
 
Join Date: Aug 2018
Posts: 274
Reputation: 0
Default Re: help please

hi. this is what you want :
Code:
SetPlayerPos(playerid, 731.2689,-1276.3110,17.6484); 
SetPlayerFacingAngle(playerid, 90.0); 
SetPlayerCameraPos(playerid, 726.6160, -1276.1014, 18.6790);
SetPlayerCameraLookAt(playerid, 727.6180, -1276.1168, 18.5538);
+rep me if i helped you !
PoniStar 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 01:40 AM.


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