I have epic problem. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I have epic problem. (
/showthread.php?tid=252867)
I have epic problem. -
Vvolk - 03.05.2011
I got the following problem: I want to make job cars and if someone enter this car who not in this job Him throws from car and SendClientMessage"You are not working this job", or if player works this job but he doesn't wear an uniform Him throws from car and SendClientMessage"You should wear an uniform". There is my code:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == GD1,GD2,GD3,GD4,GD5,GD6,GD7){
if(isPlayerDarbe(playerid,1)){
SetPlayerScore(playerid,200);
}
else
{
SendClientMessage(playerid,0x999900AA,"You doesn't work this job!");
RemovePlayerFromVehicle(playerid);
}
}
if(vehicleid == GD1,GD2,GD3,GD4,GD5,GD6,GD7){
if(GetPlayerSkin(playerid)!=28){
SetPlayerScore(playerid,200);
}
else
{
SendClientMessage(playerid,0x999900AA,"You should wear an uniform!");
RemovePlayerFromVehicle(playerid);
}
}
return 1;
}
Please correct my code or write your own code.
Re: I have epic problem. -
Vvolk - 03.05.2011
Please somebody help me!!!
Re: I have epic problem. -
MadeMan - 03.05.2011
Use OnPlayerStateChange.
Re: I have epic problem. -
Vvolk - 03.05.2011
But code should be like this that I read in this topic begin
Re: I have epic problem. - Max_Coldheart - 03.05.2011
No, This code wont work at all