05.11.2010, 23:31
Ok i have a problem,when i have 2 fraktioncars in my script,the script works but if i have 3 fraktionscars it didn't works:
hope you can help
thanks
pawn Код:
Cars[LSPD]=LSPD1 = AddStaticVehicle(596,1535.7490,-1668.1628,13.1043,359.4030,0,1);
Cars[LSPD]=LSPD2 = AddStaticVehicle(596,1535.8396,-1677.4053,13.1056,180.1512,0,1);
Cars[LSPD]=LSPD3 = AddStaticVehicle(596,1601.7650,-1683.9963,5.6129,89.1848,0,1);
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == 2)
{
new CarCheck = GetPlayerVehicleID(playerid);
if(CarCheck == Cars[LSPD] )
{
if(gTeam[playerid] != 1)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, FARBE_ROT, "You have no keys!");
return 1;
}
}
return 1;
}
return 1;
}
thanks