PDA

View Full Version : Problem!


Dan_Barocu
17/05/2012, 08:39 PM
how to put a taxi sign on sultan??

Drebin
17/05/2012, 08:47 PM
There are taxi sign objects, added in 0.3d: ID 19308 - 19311.
These can be mounted onto vehicles using AttachObjectToVehicle (http://wiki.sa-mp.com/wiki/AttachObjectToVehicle).

Dan_Barocu
17/05/2012, 09:22 PM
what is the attachvehicle coord?

Drebin
17/05/2012, 09:24 PM
Find it out. I suggest you to use GetVehicleModelInfo (http://wiki.sa-mp.com/wiki/GetVehicleModelInfo) to find the height (Z coordinate) of your vehicle.

Dan_Barocu
17/05/2012, 09:31 PM
i had it but didnt understand can you show me?

Dan_Barocu
18/05/2012, 10:40 AM
anyone please help!

milanosie
18/05/2012, 10:43 AM
Did you learn nothing?

We give you the info on how to do it, and after that you try to do it yourself.

Use GetVehicleModelInfo in a script to find out the height of the vehicle,
after that use the EditObject to edit the taxi sign to the right hight to find the coordinates

Dan_Barocu
18/05/2012, 10:56 AM
isnt a fs with taxi sign?

milanosie
18/05/2012, 10:58 AM
isnt a fs with taxi sign?

Do you know what the "Search function" is?

JaKe Elite
18/05/2012, 10:59 AM
i guess this guy is expecting that we gonna write the code for him

Dan_Barocu
18/05/2012, 11:21 AM
what do i put taxi04 in the search?or what taxi fs if i type it then i gives me fs with /fare or a mapp

milanosie
18/05/2012, 11:25 AM
Dude, We told you how to make it.

I am NOT going to explain the search function for you..

Just try a little harder..

Dan_Barocu
18/05/2012, 12:10 PM
i want to make dialog list i get pawno not responding!

ondialog respons
if(dialogid == 2222)
{
if(response)
{
if(listitem == 0)
{
if(strcmp(x_nr,"Detective",true) == 0)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat Jobul Detective :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 1;
PlayerInfo[playerid][pContractTime] = 5;
}
}
if(listitem == 1)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Lawyer :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 2;
PlayerInfo[playerid][pContractTime] = 5;
}
}
if(listitem == 2)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Bodyguard :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 8;
PlayerInfo[playerid][pContractTime] = 5;
}
}
if(listitem == 3)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Bus Driver :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 14;
PlayerInfo[playerid][pContractTime] = 5;
CP[playerid] = 1000;
SetPlayerCheckpoint(playerid, 1792.6107,-1915.7822,13.3946, 3.0);
}
}
if(listitem == 4)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Boxer :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 12;
PlayerInfo[playerid][pContractTime] = 5;
}
}
if(listitem == 5)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Sweeper :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 18;
PlayerInfo[playerid][pContractTime] = 5;
CP[playerid] = 1002;
SetPlayerCheckpoint(playerid, 1102.3403,-1232.5560,15.8203, 3.0);
}
}
if(listitem == 6)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Car Dealer :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 10;
PlayerInfo[playerid][pContractTime] = 5;
}
}
if(listitem == 7)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Paper Boy :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 15;
PlayerInfo[playerid][pContractTime] = 5;
}
}
if(listitem == 8)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Farmer :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 11;
PlayerInfo[playerid][pContractTime] = 5;
CP[playerid] = 1004;
SetPlayerCheckpoint(playerid, -109.1764,32.7763,3.1094, 3.0);
}
}
if(listitem == 9)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Trucker :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 16;
PlayerInfo[playerid][pContractTime] = 5;
CP[playerid] = 1003;
SetPlayerCheckpoint(playerid, 81.4055,-1126.1174,0.6408, 3.0);
}
}
if(listitem == 10)
{
if (GetPlayerState(playerid) == 1)
{
SendClientMessage(playerid, 0x83FF46FF, "::: Ai luat jobul Garbage Collector :::");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 19;
PlayerInfo[playerid][pContractTime] = 5;
}
}
}
}
}//not connected
return 1;
}

/takejob

if(strcmp(cmd,"/takejob",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(25.0,playerid,1236.1875,-2517.4473,253.4778))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr)) {
ShowPlayerDialog(playerid, 2222, DIALOG_STYLE_LIST, "JoBS!", "Pro Fm\nRing Fm\nActualitati\nMuzica 90s\nPrahova\nMuzica 80s\nBrasov\nCluj\nBraila\nGalati\nBucuresti\nTara f\nVenus\nPro Fm Love\nHit\nConstanta\nAlba Iulia\nPopulara\nHouse\nDans\nMuzica Copii\nBlue Sky Fm\nUBB Radio\nMuzica Romaneasca", "Asculta","Opreste");
PlayerInfo[playerid][pJob] = GettingJob[playerid];
GettingJob[playerid] = 0;
return 1;
}
return 1;
}