PDA

View Full Version : Remove from vehicle/other


edzis84
25/01/2013, 12:17 PM
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?

arakuta
25/01/2013, 01:15 PM
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:

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

-=Dar[K]Lord=-
25/01/2013, 01:17 PM
For First Problem The Solution is remove that GetPlayerVehicleSeat and for second is add cases like

add


new Job_Player[256];// top of your script


and then in /stats command add this:-


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

format(string,sizeof(string),"Job : %d [%s]",/*here the variable of your job*/,Job_Player);

edzis84
25/01/2013, 03:07 PM
Thanks guys, helpet a lot!

edzis84
25/01/2013, 07:49 PM
anyone?