I need help here - 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: I need help here (
/showthread.php?tid=613073)
I need help here -
Micko123 - 24.07.2016
hey guys. I want to ask something. Can someone help me with making this thing.
I want to make pizza job. I have command /jobhelp i have vehicle i have place to take job but i need this. When player is not employed as pizza boy it will kick him out of vehicle untill he take job. Can someone do this for me or at least give my guide because i am confused
Re: I need help here -
Micko123 - 24.07.2016
Anyone??
Re: I need help here -
Twistedz - 24.07.2016
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new seat = GetPlayerVehicleSeat(playerid);
if(vehicleid == /*id of the vehicle here*/);
{
if(pInfo[playerid][Job] == "Pizza boy"); //or if you have it with numbers, change it to your variable.
{
// your stuff here...
}
else
{
if(seat == 0)
{
SendClientMessage(playerid,/*color*/,/*error text*/);
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}
Change the variables with yours.
Re: I need help here -
Mister0 - 24.07.2016
i dont understand what you want, and no one do the script for you, you just post the errors and if we know we help