Players keep falling throw objects in cars.
#1

Players keep falling when they go to sumo. objects load slow someone help?
Reply
#2

When the player goes to the sumo, put the player a little bit high. Then make a timer which freezes the player for 5 seconds. Or increase if it still doesn't load. Then unfreeze when the timer ends.
Reply
#3

Try This :-
pawn Код:
forward LoadingF(playerid);
public LoadingF(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
Add this to your Sumo Command :-
pawn Код:
TogglePlayerControllable(playerid, 0);
    SetTimerEx("LoadingF", 2000, 0, "d", playerid);
    GameTextForPlayer(playerid,"~w~Waiting for the Environments to Load.", 2000, 3);
Just change "2000" to your desired Timer, change "3" to your desired Style, and change "~w~" to your desired Text Color.

2000 = 2 Seconds.
3 = Middle.
~w~ = White.

Codes (New Lines + Colour Lighter + Colors) :-
Код:
~n~ New Lines (Break)
~r~ - Red
~g~ - Green
~b~ - Blue
~w~ - White
~y~ - Yellow
~p~ - Purple
~l~ - Black
~h~ - Turns your Text Colour more Lighter (used too much will make your Text White, doesn't work on Black Color)
Some other Special Text Letters :-
Код:
~u~ - Up Arrow (Grey)
~d~ - Down Arrow (Grey)
~<~ - Left Arrow (Grey)
~>~ - Right Arrow (Grey)
] - Will display a "*" Symbol (Only in Text Styles 3, 4 and 5)
EDIT :-
Styles (0-6)

Style 0 - Middle Corner (Large Size + Orange Color)
Style 1 - Right Corner (Medium Size + Orange Color)
Style 2 - Middle Corner (Large Size + Old English Font + White Color)
Style 3 - Middle Corner + Above 5% (Small Size + Orange Color)
Style 4 - Middle Corner + Above 10% (Small Size + Orange Color)
Style 5 - Middle Corner (Small Size + White Color)
Style 6 - Above (Medium Size + White Color)
Reply
#4

Quote:
Originally Posted by Affan
Посмотреть сообщение
When the player goes to the sumo, put the player a little bit high. Then make a timer which freezes the player for 5 seconds. Or increase if it still doesn't load. Then unfreeze when the timer ends.
i done that. still fall
Reply
#5

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
Try This :-
pawn Код:
forward LoadingF(playerid);
public LoadingF(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
Add this to your Sumo Command :-
pawn Код:
TogglePlayerControllable(playerid, 0);
    SetTimerEx("LoadingF", 2000, 0, "d", playerid);
    GameTextForPlayer(playerid,"~w~Waiting for the Environments to Load.", 2000, 3);
Just change "2000" to your desired Timer, change "3" to your desired Style, and change "~w~" to your desired Text Color.

2000 = 2 Seconds.
3 = Middle.
~w~ = White.

Codes (New Lines + Colour Lighter + Colors) :-
Код:
~n~ New Lines (Break)
~r~ Red
~g~ Green
~b~ Blue
~w~ White
~y~ Yellow
~p~ Purple
~l~ Black
~h~ Turns your Text Colour more Lighter (doesn't work on Black Color)
i want them to freeze when they in car i added that and they still fall
Reply
#6

Can you show us the sumo command?
Reply
#7

Код:
CMD:sumo(playerid,params[])
{
	if(InSumo[playerid] == 1)
	    return SendClientMessage(playerid, red, "[ERROR] You are already in Sumo!");
	if(SumoActive == 1)
	    return SendClientMessage(playerid, red, "[ERROR] Sumo is currently active! Try again later.");
	if(SumoActive == 0 && SumoStarting == 0) {
	    SumoStarting = 31;
	    switch(random(8)) {
	    	case 0: SumoVehicle = 502;
	    	case 1: SumoVehicle = 549;
	    	case 2: SumoVehicle = 424;
	    	case 3: SumoVehicle = 568;
	    	case 4: SumoVehicle = 556;
	    	case 5: SumoVehicle = 495;
	    	case 6: SumoVehicle = 451;
	    	case 7: SumoVehicle = 451;
	    }
	    SendClientMessageToAll(green, "(Sumo) Sumo is starting in 30 seconds. Type /sumo to join.");
	    SetTimer("SumoCountdown", 1000, false);
	}
	Teleported(playerid);
	ResetPlayerWeapons(playerid);
	TogglePlayerControllable(playerid, false);
	new Float: x, Float: y, Float: z, Float: a;
	SumoPos(x, y, z, a);
	Streamer_UpdateEx(playerid, x, y, z, SumoVW, 0);
	new v = CreateVehicle(SumoVehicle, x, y, z, a, -1, -1, 1);
	TempVeh[v] = 1;
	LinkVehicleToInterior(v, 0);
	SetVehicleVirtualWorld(v, SumoVW);
	SetPlayerVirtualWorld(playerid, SumoVW);
	SetPlayerInterior(playerid, 0);
	PutPlayerInVehicle(playerid, v, 0);
	SetCameraBehindPlayer(playerid);
	SetVehicleParamsEx(v, 1, 0, 0, 1, 0, 0, 0);
	SendClientMessage(playerid, yellow, "(Sumo) You have joined Sumo.");
	new string[128];
	format(string,sizeof(string),"(Sumo) %s has joined the Sumo.", PlayerName(playerid));
	MessageToSumoPlayers(yellow, string);
	InSumo[playerid] = 1;
	//TogglePlayerControllable(playerid, 0);
    //SetTimerEx("LoadingF", 30000, 0, "d", playerid);
    //GameTextForPlayer(playerid,"~w~Waiting for the Environments to Load.", 30000, 3);
	return 1;
}
Reply
#8

Try This :-
pawn Код:
forward LoadingF(playerid);
public LoadingF(playerid)
{
    new vehID = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective;
    TogglePlayerControllable(playerid, 1);
    GetVehicleParamsEx(vehID, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehID, 1, lights, alarm, doors, bonnet, boot, objective);
    return 1;
}
Add this to your Sumo Command :-
pawn Код:
new vehID = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective;
    TogglePlayerControllable(playerid, 0);
    GetVehicleParamsEx(vehID, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehID, 0, lights, alarm, doors, bonnet, boot, objective);
    SetTimerEx("LoadingF", 2000, 0, "d", playerid);
    GameTextForPlayer(playerid,"~w~Waiting for the Environments to Load.", 2000, 3);
Reply
#9

Quote:
Originally Posted by SAMProductions
Посмотреть сообщение
Try This :-
pawn Код:
forward LoadingF(playerid);
public LoadingF(playerid)
{
    new vehID = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective;
    TogglePlayerControllable(playerid, 1);
    GetVehicleParamsEx(vehID, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehID, 1, lights, alarm, doors, bonnet, boot, objective);
    return 1;
}
Add this to your Sumo Command :-
pawn Код:
new vehID = GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective;
    TogglePlayerControllable(playerid, 0);
    GetVehicleParamsEx(vehID, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(vehID, 0, lights, alarm, doors, bonnet, boot, objective);
    SetTimerEx("LoadingF", 2000, 0, "d", playerid);
    GameTextForPlayer(playerid,"~w~Waiting for the Environments to Load.", 2000, 3);
Dint work im still falling :/
Reply
#10

But it freezes you and your vehicle ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)