Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Top of your script
- new Text:Info;
- //Under On Game Mode Init
- Info = TextDrawCreate(139.000000, 170.000000, " ");
- TextDrawAlignment(Info, 3);
- TextDrawBackgroundColor(Info, 255);
- TextDrawFont(Info, 1);
- TextDrawLetterSize(Info, 0.500000, 1.000000);
- TextDrawColor(Info, -1);
- TextDrawSetOutline(Info, 0);
- TextDrawSetProportional(Info, 1);
- TextDrawSetShadow(Info, 1);
- TextDrawUseBox(Info, 1);
- TextDrawBoxColor(Info, 255);
- TextDrawTextSize(Info, 0.000000, 0.000000);
- //Top of Your script
- new Loaded[MAX_PLAYERS];
- forward LoadPlayer(playerid);
- //Any where
- stock Pause(playerid)
- {
- TogglePlayerControllable(playerid,false);
- TextDrawShowForPlayer(playerid,Info);
- TextDrawSetString(Info, "Objects Loading.");
- Loaded[playerid] = 1;
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid,x,y,z+1);
- SetTimer("LoadPlayer",3100,false);
- }
- public LoadPlayer(playerid)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(Loaded[i] == 1)
- {
- TextDrawSetString(Info, "Objects Loaded!!");
- TogglePlayerControllable(i,true);
- SetTimerEx("HideTD", 2000, false, "i", playerid);
- Loaded[i] = 0;
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement