Work prolem
#4

PHP код:
new GetPlayerVehicleID(playerid), GetVehicleModel(t);//Explained earlier
    
if(!IsTrailerAttachedToVehicle(m)) return SendClientMessage(playerid,-1"You need a trailer to unload!");//This line checks wether the player has a trailer attached to their truck.
    
if(GetPlayerTeam(playerid) == 1)
    {
        if(
IsPlayerInAnyVehicle(playerid))
        {
            switch(
truck_PlayerJob[playerid])
            {
                case 
1:
                {
                    
truck_PlayerJob[playerid] = -1;
                    
TogglePlayerControllable(playerid0);
                    
SetTimerEx("Trucker2"15000false"i"playerid);
                    new 
loading[MAX_PLAYERS];
                    
format(loading,sizeof(loading), "~y~Loading... ~g~Please wait");
                    
TextDrawSetString(Work[playerid], loading);
                    
                }
                case 
23:
                {
                    
truck_PlayerJob[playerid] = 3;
                    
TogglePlayerControllable(playerid0);
                    
SetTimerEx("Trucker3"15000false"i"playerid);
                    new 
loading[MAX_PLAYERS];
                    
format(loading,sizeof(loading), "~y~unLoading... ~g~Please wait");
                    
TextDrawSetString(Work[playerid], loading);
                }
            }
            return 
1;
        }
    } 
Try this.
Reply


Messages In This Thread
Work prolem - by DerickClark - 17.08.2015, 11:19
Re: Work prolem - by GloomY - 17.08.2015, 11:54
Re: Work prolem - by DerickClark - 17.08.2015, 12:01
Re: Work prolem - by GloomY - 17.08.2015, 12:13
Re: Work prolem - by DerickClark - 17.08.2015, 20:24
Re: Work prolem - by DerickClark - 18.08.2015, 02:14

Forum Jump:


Users browsing this thread: 1 Guest(s)