forward LoadingF(playerid);
public LoadingF(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}
TogglePlayerControllable(playerid, 0);
SetTimerEx("LoadingF", 2000, 0, "d", playerid);
GameTextForPlayer(playerid,"~w~Waiting for the Environments to Load.", 2000, 3);
~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)
~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)
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.
|
Try This :-
pawn Код:
pawn Код:
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) |
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; }
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;
}
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);
Try This :-
pawn Код:
pawn Код:
|