SA-MP Forums Archive
help please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: help please (/showthread.php?tid=664827)



help please - soobya - 12.03.2019

i want to lock some teams for vips only but i dont know how when i try
get errors
can anyone help me please


Re: help please - SymonClash - 12.03.2019

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 Код:
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;
}



Re: help please - soobya - 14.03.2019

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


Re: help please - PoniStar - 14.03.2019

hi. this is what you want :
Код:
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 !