Freezze player for 5 seconde
#1

Hello everyone I would freeze the player for 5 seconds by the time the map changes to begin?

Sorry for my english
Reply
#2

Under The command if you want:
Код:
MapLoading(playerid);
In anywhere:
Код:
    forward MapLoading(playerid);
    public MapLoading(playerid)
    {
    TogglePlayerControllable(playerid,false);
    SetTimerEx("MapLoaded", 5000, 0,"d",playerid);
    return 1;
    }
    forward MapLoaded(playerid);
    public MapLoaded(playerid)
    {
	TogglePlayerControllable(playerid, true);
	return 1;
    }
_________________________
Helped you? rep+ me

xXx Stunt Paradise Awesome

Server IP: Click Here!

Hosted Tab Game-MP for 10 Euro / per month
Hosted Tab + Server host 50 slots + Control Panel for 15 Euro
Skype: MahdiAsali
Ђ10 Euro for Hosted List
Reply
#3

his walk not in my gm
Reply
#4

Bump how to make for freeze a player for 5 seconde at OnPlaterSpawn Pleases
Reply
#5

Quote:
Originally Posted by ProduitToxic
Посмотреть сообщение
his walk not in my gm
Where he is walk?? you can put this function in FS also.
Код:
This forum requires that you wait 240 seconds between posts. Please try again in 181 seconds.
_________________
xXx Stunt Paradise Awesome

Server IP: Click Here!

Hosted Tab Game-MP for 10 Euro / per month
Hosted Tab + Server host 50 slots + Control Panel for 15 Euro
Skype: MahdiAsali
Ђ10 Euro for Hosted List
Reply
#6

Yes it is on foot.
Reply
#7

Pleases help me for freeze the player for 5 sec at spawn
Reply
#8

pawn Код:
public OnPlayerSpawn(playerid)
{
    TogglePlayerControllable(playerid, 0); // Freezing the player
    SendClientMessage(playerid, -1, "Loading the maps.");
    SetTimerEx("LoadingMap", 5000, false, "i", playerid); // Setting the timer to five 5 seconds (5000 milliseconds)
    return 1;
}

forward LoadingMap(playerid); // Forwarding
public LoadingMap(playerid)
{
    TogglePlayerControllable(playerid, 1); // Unfreezing the player
    return 1;
}
Reply
#9

THANKS ! + rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)