15.12.2010, 19:13
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:
As an example, this is how you would perform the teleport if you are using strcmp:
Hope this helps.
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;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/demorgan", true, 9)) {
DeMorganTeleport(playerid);
return 1;
}
return 1;
}