game text in vehicle not working - 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: game text in vehicle not working (
/showthread.php?tid=576239)
game text in vehicle not working -
Rissam - 02.06.2015
this is my code
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == 448)
{
GameTextForPlayer(playerid,"text here",4000,4);
}
return 1;
}
this code is not working please help.
Re: game text in vehicle not working -
Alpay0098 - 02.06.2015
Are you using ModernlifeRP? :P
Code :
PHP код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new model = GetVehicleModel( vehicleid );
if (model == 400)
{
GameTextForPlayer(playerid,"~g~Landstalker",2000,1);
}
return 1;
}
AW: game text in vehicle not working -
Kaliber - 02.06.2015
You must do this:
Код:
if(GetVehicleModel(vehicleid) == 448)
Greekz
Re: AW: game text in vehicle not working -
Rissam - 02.06.2015
Quote:
Originally Posted by Kaliber
You must do this:
Код:
if(GetVehicleModel(vehicleid) == 448)
Greekz
|
thanks +rep