21.08.2016, 01:09
Hey I need some help, kinda stuck with it.
I'm using CNR gamemode, so I want to change a class background when you are choosing a class, and I want to make it a different location for every class
Code looks like that
What should I use, is this definetly
Theres more (Example: FBI,CIA,SPY) So I want to make it like that, when you are going to select this class it will change the background location aswell on player class selection
I'm using CNR gamemode, so I want to change a class background when you are choosing a class, and I want to make it a different location for every class
Code looks like that
PHP код:
public OnPlayerRequestClass(playerid, classid)
{
new Float:spawnX, Float:spawnY, Float:spawnZ;
spawnX = -1967.5838;
spawnY = 136.1628;
spawnZ = 27.6875;
ClearAnimations(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, spawnX, spawnY, spawnZ);
SetPlayerCameraPos(playerid, spawnX + 5.0, spawnY +3.0, spawnZ + 2.00);
SetPlayerCameraLookAt(playerid, spawnX, spawnY, spawnZ);
SetPlayerFacingAngle(playerid, -90.0000);
switch(classid)
{
PHP код:
Player[playerid][playerClass] = POLICE;