how remove vehicle
#1

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;
        } 
Reply
#2

help me plz
Reply
#3

up for help
Reply
#4

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/
Reply
#5

When a player goes out, the car was purchased to be removed
Reply
#6

Assuming that getCheckpointType returns the checkpointid:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if (getCheckpointType(playerid) == CP_wangcars || getCheckpointType(playerid) == CP_GUN)
    {
        DestroyVehicle(vehicleid);
    }
    return 1;
}
Reply
#7

not work
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)