Remove from vehicle/other
#1

I did not want to make new topic so i will ask here another question.

When i log in there pops out that skin selector and option to spawn, how to remove it?
Reply
#2

Use callback OnPlayerStateChange instead of OnPlayerEnterVehicle.
Because OnPlayerStateChange is called when the player really enter the vehicle.
OnPlayerEnterVehicle is called when a pkayer try to enter.

About the second question, do a stock like this to get the job name using the job id:

pawn Code:
stock GetJobName(jobid)
{
    new job[20];
    switch(jobid)
    {
        case 1: job = "Farmer";
        case 2: job = "Trucker";
        //case 3: job = "Job";
    }
    return job;
}

CMD:jobname(playerid)
{
    new a[20+20];
    format(a,sizeof a,"Your job is: %s",GetJobName(Job[playerid]));
    SendClientMessage(playerid,-1,a);
    return 1;
}
Reply
#3

For First Problem The Solution is remove that GetPlayerVehicleSeat and for second is add cases like

add

pawn Code:
new Job_Player[256];// top of your script
and then in /stats command add this:-

pawn Code:
case 1: Job_Player = "Farmer";
case 2: JJob_Player = "Trucker";
// and so on if you have more add case 3: and all do like i did
in the format(...
add '%s' After that 'Job: %d' if you want u can do it in brackets and then at where u put that job variable after that put 'Job_Player'

forex:-
pawn Code:
format(string,sizeof(string),"Job : %d [%s]",/*here the variable of your job*/,Job_Player);
Reply
#4

Thanks guys, helpet a lot!
Reply
#5

anyone?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)