SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Scripting Help (https://forum.sa-mp.com/forumdisplay.php?f=12)
-   -   help please (https://forum.sa-mp.com/showthread.php?t=664827)

soobya 12/03/2019 04:55 PM

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 :)

SymonClash 12/03/2019 08:29 PM

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;
}

soobya 14/03/2019 04:55 PM

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 :)

PoniStar 14/03/2019 08:32 PM

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 !


All times are GMT. The time now is 07:49 AM.

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