16.07.2014, 11:34
merci pour vos reposes j'ai йssayй зa :
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 425 || vehicle == 432 || vehicle == 447 || vehicle == 469 || vehicle == 520 || vehicle == 592)
{
if(GetPlayerScore(playerid)< 15)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF0000FF,"Vous devez etre lvl 15 pour conduir ce vehicule (1kill=1lvl)");
}
}
}
return 1;
}
mais зa marche pas ...
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicle;
vehicle = GetPlayerVehicleID(playerid);
if(vehicle == 425 || vehicle == 432 || vehicle == 447 || vehicle == 469 || vehicle == 520 || vehicle == 592)
{
if(GetPlayerScore(playerid)< 15)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,0xFF0000FF,"Vous devez etre lvl 15 pour conduir ce vehicule (1kill=1lvl)");
}
}
}
return 1;
}
mais зa marche pas ...