Vehicle help
#4

mm can u tell me how this will be in my /resetcar command
PHP код:
CMD:resetcar(playeridparams[])
{
    new 
tmp[256], tmp1[256], name[MAX_PLAYER_NAME], string[256], string2[256], tvartvar1dia[256];
    if(
pvehicle[playerid][0]==&& pvehicle[playerid][1]==0) return SendClientMessage(playeridCOLOR_RED"ERROR:You Dont Own Any Vehicle");
    
GetPlayerName(playeridnamesizeof(name));
    if(
pvehicle[playerid][0]!=0)
    {
           
format(string50"V_%s"name);
        
tvar dini_Int(AddDirFile(dir_carfilesstring), "model");
        
format(tmpsizeof(tmp), "Reset Your: %s"tvar-400);
    }
     if(
pvehicle[playerid][1]!=0)
    {
           
format(string50"V1_%s"name);
         
tvar1 dini_Int(AddDirFile(dir_carfilesstring), "model");
        
format(tmp1sizeof(tmp1), "Reset Your: %s"tvar1-400);
    }
    
format(diasizeof(dia), "%s\n%s"tmptmp1);
    
ShowPlayerDialog2(playeridDIALOG_RES_CARDIALOG_STYLE_TABLIST_HEADERS"Select An Car To Reset"dia"Select""Cancel");
    return 
1;

this should show me the player cars
Reply


Messages In This Thread
Vehicle help - by silverms - 13.04.2017, 14:18
Re: Vehicle help - by renatog - 13.04.2017, 14:23
Re: Vehicle help - by XpDeviL - 13.04.2017, 14:25
Re: Vehicle help - by silverms - 13.04.2017, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)