how remove vehicle - 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: how remove vehicle (
/showthread.php?tid=484735)
how remove vehicle -
br155 - 01.01.2014
how remove vehicle moment left palyer is game
cmd time buy
PHP код:
if(getCheckpointType(playerid) == CP_wangcars)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
return 1;
}
ShowPlayerDialog(playerid,DIALOG_wangcars,DIALOG_STYLE_LIST,"{FF0000}nemayandagi (SAIPA)","{FFFFFF}Infernus(2dar) ($120000)\nTurismo(2dar) ($120000)\nMashin Mosabeghe(2dar) ($200000)\nSuper GT(2dar) ($150000)\nSultan (4dar) ($50000)\nLimozin (4dar) ($80000)\nElegy(2dar) ($60000)\nElegant(4dar) ($40000)\nBullet(2dar) ($100000)\nBuffalo(2dar) ($50000)\nJester(2dar) ($90000)\nHachbak(2dar) ($40000)\nNRG 500 ($200000)\nTDR(Sanchez) ($200000)\n{FF0000}Dozdi","Ok","Cancel");
return 1;
}
if(getCheckpointType(playerid) == CP_GUN)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_ERROR,"You must exit your vehicle before entering a checkpoint.");
return 1;
}
Respuesta: how remove vehicle -
br155 - 01.01.2014
help me plz
Respuesta: how remove vehicle -
br155 - 01.01.2014
up for help
Re: how remove vehicle -
Unri - 01.01.2014
I think the reason people arent helping you is because they cant understand what are you trying to say.
Ask your parents to translate you to english or use
http://translate.******.com/
Respuesta: how remove vehicle -
br155 - 01.01.2014
When a player goes out, the car was purchased to be removed
Re: how remove vehicle -
Konstantinos - 01.01.2014
Assuming that getCheckpointType returns the checkpointid:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
if (getCheckpointType(playerid) == CP_wangcars || getCheckpointType(playerid) == CP_GUN)
{
DestroyVehicle(vehicleid);
}
return 1;
}
Respuesta: how remove vehicle -
br155 - 01.01.2014
not work