08.04.2011, 06:21
hi so i make this
in the top of gamemode i write:
new vmcar1;
new vmcar2;
new vmcar3;
new vmoto1;
new vmoto2;
new vmoto3;
new vmtruck1;
new vmtruck2;
new vmplane;
then i in ongamemodeinit make this:
vmcar1 = AddStaticVehicle(545,-2076.813,-84.557,35.114,179.0,-1,-1);
vmcar2 = AddStaticVehicle(545,-2072.717,-84.422,35.114,179.0,-1,-1);
vmcar3 = AddStaticVehicle(545,-2068.651,-84.535,35.114,179.0,-1,-1);
vmoto1 = AddStaticVehicle(581,-2018.3292,-94.6115,34.7612,89.9039,58,1); // vm1
vmoto2 = AddStaticVehicle(581,-2018.5205,-97.7564,34.7604,87.0495,58,1); // vm2
vmoto3 = AddStaticVehicle(581,-2018.6565,-100.6173,34.7607,88.5443,58,1); // vm3
vmtruck1 = AddStaticVehicle(514,-2089.7722,-96.4897,35.7170,270.4987,39,7; // wmfura1
vmtruck2 = AddStaticVehicle(514,-2090.0801,-89.0766,35.7161,270.3589,39,7; // wmfura2
vmplane = AddStaticVehicle(469,-2026.6824,-109.9959,38.9376,30.3056,47,47); //liocikas
then in onplayerstatechange i make this:
new vehicleid = GetPlayerVehicleID(playerid);
new model = GetVehicleModel(vehicleid);
if(model == vmcar1 || model == vmcar2 || model == vmcar3)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Vairavimo Mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teises])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Kvailas poelgis, jыs jau turite Vairavimo Teises.");// tekstas
return 1;
}
if(playerDB[playerid][teises])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Kvailas poelgis, jыs jau turite Vairavimo Teises.");// tekstas
return 1;
}
if(!playerDB[playerid][teises])
{
ShowPlayerDialog(playerid, 474, DIALOG_STYLE_MSGBOX, "* Vairavimo Mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
}
if(model == vmoto1 || model == vmoto2 || model == vmoto3)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Vairavimo Mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teisesM])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Jus jau turite motociklininko paюymлjimа.");// tekstas
return 1;
}
if(!playerDB[playerid][teisesM])
{
ShowPlayerDialog(playerid, 474, DIALOG_STYLE_MSGBOX, "* Vairavimo Mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
}
if(model == vmtruck1 || model == vmtruck2)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Vairavimo Mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teisesF])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Jus jau turite motociklininko paюymлjimа.");// tekstas
return 1;
}
if(!playerDB[playerid][teisesF])
{
ShowPlayerDialog(playerid, 474, DIALOG_STYLE_MSGBOX, "* Vairavimo Mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
}
if(model == vmlek)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Lakыnш skraidymo mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teisesL])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Lakыnш skraidymo mokykla *:* Jus jau turite skraidimo pazymejima!");// tekstas
return 1;
}
if(!playerDB[playerid][teisesL])
{
ShowPlayerDialog(playerid, 475, DIALOG_STYLE_MSGBOX, "* Lakыnш skraidymo mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
return 1;
}
and now when i get in the car,i didnt get dialog,i dont know whats wrong,and dont look at my language pls help!
in the top of gamemode i write:
new vmcar1;
new vmcar2;
new vmcar3;
new vmoto1;
new vmoto2;
new vmoto3;
new vmtruck1;
new vmtruck2;
new vmplane;
then i in ongamemodeinit make this:
vmcar1 = AddStaticVehicle(545,-2076.813,-84.557,35.114,179.0,-1,-1);
vmcar2 = AddStaticVehicle(545,-2072.717,-84.422,35.114,179.0,-1,-1);
vmcar3 = AddStaticVehicle(545,-2068.651,-84.535,35.114,179.0,-1,-1);
vmoto1 = AddStaticVehicle(581,-2018.3292,-94.6115,34.7612,89.9039,58,1); // vm1
vmoto2 = AddStaticVehicle(581,-2018.5205,-97.7564,34.7604,87.0495,58,1); // vm2
vmoto3 = AddStaticVehicle(581,-2018.6565,-100.6173,34.7607,88.5443,58,1); // vm3
vmtruck1 = AddStaticVehicle(514,-2089.7722,-96.4897,35.7170,270.4987,39,7; // wmfura1
vmtruck2 = AddStaticVehicle(514,-2090.0801,-89.0766,35.7161,270.3589,39,7; // wmfura2
vmplane = AddStaticVehicle(469,-2026.6824,-109.9959,38.9376,30.3056,47,47); //liocikas
then in onplayerstatechange i make this:
new vehicleid = GetPlayerVehicleID(playerid);
new model = GetVehicleModel(vehicleid);
if(model == vmcar1 || model == vmcar2 || model == vmcar3)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Vairavimo Mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teises])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Kvailas poelgis, jыs jau turite Vairavimo Teises.");// tekstas
return 1;
}
if(playerDB[playerid][teises])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Kvailas poelgis, jыs jau turite Vairavimo Teises.");// tekstas
return 1;
}
if(!playerDB[playerid][teises])
{
ShowPlayerDialog(playerid, 474, DIALOG_STYLE_MSGBOX, "* Vairavimo Mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
}
if(model == vmoto1 || model == vmoto2 || model == vmoto3)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Vairavimo Mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teisesM])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Jus jau turite motociklininko paюymлjimа.");// tekstas
return 1;
}
if(!playerDB[playerid][teisesM])
{
ShowPlayerDialog(playerid, 474, DIALOG_STYLE_MSGBOX, "* Vairavimo Mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
}
if(model == vmtruck1 || model == vmtruck2)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Vairavimo Mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teisesF])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Vairavimo Mokykla *:* Jus jau turite motociklininko paюymлjimа.");// tekstas
return 1;
}
if(!playerDB[playerid][teisesF])
{
ShowPlayerDialog(playerid, 474, DIALOG_STYLE_MSGBOX, "* Vairavimo Mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
}
if(model == vmlek)
{
if(GetPlayerMoney(playerid) < 2900)
{
SendClientMessage(playerid, COLOR_GREENYELLOW, "* Lakыnш skraidymo mokykla *:* Egzamino laikymo kaina yra 2900 LT. Atsipraрome taиiau jus tiek neturite.");// tekstas
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}
if(playerDB[playerid][teisesL])
{
SendClientMessage(playerid, COLOR_GREENYELLOW,"* Lakыnш skraidymo mokykla *:* Jus jau turite skraidimo pazymejima!");// tekstas
return 1;
}
if(!playerDB[playerid][teisesL])
{
ShowPlayerDialog(playerid, 475, DIALOG_STYLE_MSGBOX, "* Lakыnш skraidymo mokykla *", "Ar norite laikyti vairavimo egzaminа? Egzamino kaina 2900 LT", "Laikyti", "Iseiti");// GUI
return 1;
}
return 1;
}
and now when i get in the car,i didnt get dialog,i dont know whats wrong,and dont look at my language pls help!