Need a little help (OnPlayerRequestClass)
#1

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
PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    new 
Float:spawnXFloat:spawnYFloat:spawnZ;
    
spawnX = -1967.5838;
    
spawnY 136.1628;
    
spawnZ 27.6875;
    
ClearAnimations(playerid);
    
SetPlayerInterior(playerid0);
    
SetPlayerPos(playeridspawnXspawnYspawnZ);
    
SetPlayerCameraPos(playeridspawnX 5.0spawnY +3.0spawnZ 2.00);
    
SetPlayerCameraLookAt(playeridspawnXspawnYspawnZ);
    
SetPlayerFacingAngle(playerid, -90.0000);
    switch(
classid)
    { 
What should I use, is this definetly
PHP код:
Player[playerid][playerClass] = POLICE
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
Reply


Messages In This Thread
Need a little help (OnPlayerRequestClass) - by Frank901 - 21.08.2016, 01:09
Re: Need a little help (OnPlayerRequestClass) - by Shinja - 21.08.2016, 01:23
Re: Need a little help (OnPlayerRequestClass) - by Frank901 - 21.08.2016, 13:36
Re: Need a little help (OnPlayerRequestClass) - by Shinja - 21.08.2016, 13:37
Re: Need a little help (OnPlayerRequestClass) - by Frank901 - 21.08.2016, 14:07
Re: Need a little help (OnPlayerRequestClass) - by Shinja - 21.08.2016, 14:09
Re: Need a little help (OnPlayerRequestClass) - by WhiteGhost - 21.08.2016, 14:14
Re: Need a little help (OnPlayerRequestClass) - by Frank901 - 21.08.2016, 14:23
Re: Need a little help (OnPlayerRequestClass) - by Frank901 - 21.08.2016, 14:33

Forum Jump:


Users browsing this thread: 5 Guest(s)