Why this doesnt work???
#1

i want when certain team get in a vehicle it changes the color :::

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

if(gTeam[playerid] == TEAM_LS)
{
ChangeVehicleColor(476, 16, 1);
}
else if(gTeam[playerid] == TEAM_LV)
{
ChangeVehicleColor(476, 65, 1);
}

return 1;
}
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] == TEAM_LS)
{
ChangeVehicleColor(vehicleid, 16, 1);
}
else if(gTeam[playerid] == TEAM_LV)
{
ChangeVehicleColor(vehicleid, 65, 1);
}
return 1;
}
you does use the Model ID but you must use vehicleid ^^
Reply
#3

how to compare between model id and vehicle id?
Reply
#4

when you creating Vehicles

CreateVehicle(...);

in OnGameModeInit or somewhere and it is your first Vehicle it has ID 0, the next Vehicle has ID 1 and so on
Reply
#5

guys i have 1 more question : i made a system that players can only use certain vehicles (hydras , rustlers) so i putted them in my gamemode and defined if the player is under level 1 , and it blocked all players not under level 1 only , and when i putted it in admin script , didnt do anything :S
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)