SA-MP Forums Archive
Message Own Car - 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: Message Own Car (/showthread.php?tid=68047)



Message Own Car - [LNL]Remulis - 06.03.2009

can someone help me to put the message when u enter that car with other name it shows you like " This car owner is Remulis" can someone help me pls

because when i did it i coun'd get in car with any name

here is script

Код:
#include <a_samp>

#define COLOR_WHITE 0xFFFFFFAA

new tomo;

public OnFilterScriptInit()
{
	print("\n------------------------");
	print("Masinu rezervacija by Remulis");
	print("------------------------\n");
	return 1;
}

public OnGameModeInit()
{
	tomo = CreateVehicle(444,-2534.7346,-616.5275,132.9338,269.4894,122,76,120); // monstras
	return 1;
}

public OnPlayerEnterVehicle(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name, "Remulis", false) == 0)
{
SetVehicleParamsForPlayer(tomo,playerid,0,1);
}
return 1;
}