Help !OnPlayerEnterVehicle
#1

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!");
}
}
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)