21.06.2010, 16:46
Hi there, i don't now why but something in this code makes it so that you get removed from any vehicle
Now apart from this being scripted stupid, and WAY to long, i don't know whats wrong please help me out here!
Thanks in advance!
pawn Код:
if(PlayerInfo[playerid][pAir] == 0 && PlayerInfo[playerid][pHel] == 0)
{
if(GetStreamVehicleModel(newcar) == 417)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 425)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 447)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 460)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 469)
{
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
RemovePlayerFromVehicle(playerid);
if(GetStreamVehicleModel(newcar) == 476)
{
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 487)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 488)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 497)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
RemovePlayerFromVehicle(playerid);
if(GetStreamVehicleModel(newcar) == 511)
{
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 512)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 513)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 519)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 520)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 548)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 553)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 563)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 577)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 592)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
if(GetStreamVehicleModel(newcar) == 593)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)");
GameTextForPlayer(playerid, "First buy an aircraft at Wangcars to get your license! (check /buyvehicle)", 10000, 1);
}
}
Thanks in advance!