Help !OnPlayerEnterVehicle - 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: Help !OnPlayerEnterVehicle (
/showthread.php?tid=182984)
Help !OnPlayerEnterVehicle -
SkizzoTrick - 13.10.2010
Hello..i want to this functions for the one whos entering vehicle with id 1!But it just don't load
..i don't get any error/warn!
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (GetVehicleModel(vehicleid) == 1 )
{
if(IsPlayerInVehicle(playerid,vehicleid))
{
if( gTeam[playerid] == TEAM_EUROPE )
{
new string[38];
SendClientMessage(playerid,COLOR_WHITE ,"USA Prototype,drive it to your base and get Reward!");
SendClientMessageToAll(COLOR_LIGHTRED ,"Someone stealing vehicle from United States!");
SetPlayerCheckpoint(playerid, -137.8176,1181.0914,19.3086, 5.0);
format(string, sizeof(string), "United States Prototype !!");
SetPlayerChatBubble(playerid, string, COLOR_BLUE, 40.0, 500000);
}
else
{
SendClientMessage(playerid,COLOR_WHITE,"You need to be European!");
}
}
}