16.07.2014, 00:06
j'ai fai зa mais apres je peux quand meme le prendre le veh зa fait rien
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(vehicle > 425)
if(vehicle > 432)
if(vehicle > 447)
if(vehicle > 469)
if(vehicle > 520)
if(vehicle > 592)
if(newstate == 2 && GetPlayerScore(playerid)< 15)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF0000FF,"Vous devez etre lvl 15 pour conduir ce vehicule (1kill=1lvl)");
}
return 1;
}
j'ai aussi essayer зa mais j'ai des йrreurs:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 411) && (GetPlayerScore(playerid) <15) return SendClientMessage(playerid,-1,"Vous devez etre lvl 20 pour conduir зa ! ");
{
RemovePlayerFromVehicle(playerid);
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(vehicle > 425)
if(vehicle > 432)
if(vehicle > 447)
if(vehicle > 469)
if(vehicle > 520)
if(vehicle > 592)
if(newstate == 2 && GetPlayerScore(playerid)< 15)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF0000FF,"Vous devez etre lvl 15 pour conduir ce vehicule (1kill=1lvl)");
}
return 1;
}
j'ai aussi essayer зa mais j'ai des йrreurs:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 411) && (GetPlayerScore(playerid) <15) return SendClientMessage(playerid,-1,"Vous devez etre lvl 20 pour conduir зa ! ");
{
RemovePlayerFromVehicle(playerid);
return 1;
}