GetVehicleModel help. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetVehicleModel help. (
/showthread.php?tid=558498)
GetVehicleModel help. -
finelaq - 17.01.2015
Hi!
I need help with this code:
pawn Код:
if(dialogid == DIALOG_MISSIONS)
{
if(response)
{
if(listitem == 0)
{
new vid=GetVehicleModel(GetPlayerVehicleID(playerid));
if(vid == 561)
{
CP[playerid] = 1;
SetPlayerCheckpoint(playerid, -2365.8149,1082.3146,55.2833, 7.0);
SendClientMessage(playerid, -1,"[Mission]: Sultan mission has started!");
SetVehiclePos(GetPlayerVehicleID(playerid), -2363.4282,1088.5339,55.2364);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 158.3996);
}
else return SendClientMessage(playerid, -1,"[Mission]: You need Sultan for this mission!");
}
}
}
And if im in sultan it tell me "[Mission]: You need Sultan for this mission!"
Re: GetVehicleModel help. -
Garavel - 17.01.2015
561 is Stratum not Sultan
Sultan's ID is 560
Re: GetVehicleModel help. -
finelaq - 17.01.2015
Quote:
Originally Posted by Garavel
561 is Stratum not Sultan Sultan's ID is 560
|
oh... im so stupid...