public Help [ Urgent ]
#4

Well I got ignored, but I have assumed that people on your server would get to Fort DeMorgan by using a tele command such as "/demorgan". Here is a solution if this is the case:

pawn Код:
forward UnfreezePlayer(playerid); //PUT AT THE TOP OF YOUR CODE

public UnfreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}

stock DeMorganTeleport(playerid)
{
    SetPlayerPos(playerid, 177.4720,1894.8317,1149.6217);
    GameTextForPlayer(playerid, "~g~ Loading Objects...", 5000, 6);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    SendClientMessage(playerid,COLOR_GREY, " Welcome to Fort DeMorgan");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("UnfreezePlayer",3000,false,"i",playerid);
    return 1;
}
As an example, this is how you would perform the teleport if you are using strcmp:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/demorgan", true, 9)) {
        DeMorganTeleport(playerid);
        return 1;
    }

    return 1;
}
Hope this helps.
Reply


Messages In This Thread
public Help [ Urgent ] - by ShawnMiller1337 - 15.12.2010, 18:38
Re: public Help [ Urgent ] - by Benjo - 15.12.2010, 18:51
Re: public Help [ Urgent ] - by ShawnMiller1337 - 15.12.2010, 18:59
Re: public Help [ Urgent ] - by Benjo - 15.12.2010, 19:13
Respuesta: public Help [ Urgent ] - by Quantum - 15.12.2010, 19:13
Re: public Help [ Urgent ] - by ShawnMiller1337 - 15.12.2010, 19:32
Respuesta: public Help [ Urgent ] - by Quantum - 15.12.2010, 20:11

Forum Jump:


Users browsing this thread: 1 Guest(s)