[ajuda] Conflito dialog
#1

pawn Код:
if(!IsPlayerInAnyVehicle(playerid)){
                   SetPlayerPos(playerid, -2706.3394,218.2382,4.1797);
                   TogglePlayerControllable(playerid,0);
                   SetTimerEx("Unfreeze", 2000, 0, "d", playerid,1);
                   new string[128], pName[MAX_PLAYER_NAME];
                   GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
                   format(string, sizeof(string), "{FF0000}(/sft) {FFFF00}Player {FF0000}%s {FFFF00}Vocк foi teleportado para: {FF0000}San Fierro tuning",pName);
                   GameTextForPlayer(playerid,"~g~Loading Objetos",2000,3);
                   SendClientMessageToAll(playerid, string);
                   SetPlayerFacingAngle(playerid, 0.0);
                   SetPlayerInterior(playerid, 0);
                   SetPlayerVirtualWorld(playerid, 0);
                   }
Reply
#2

Cadк os SetPlayerPos?
Reply
#3

tu nao consegue ver?
Reply
#4

Ata, eu nгo abaixei ^^
Reply
#5

pawn Код:
TogglePlayerControllable(playerid,0); // 0 congela 1 descongela.
pawn Код:
TogglePlayerControllable(playerid,1);
Reply
#6

Quote:
Originally Posted by BreakDriFT
Посмотреть сообщение
pawn Код:
TogglePlayerControllable(playerid,0); // 0 congela 1 descongela.
pawn Код:
TogglePlayerControllable(playerid,1);
to ligado mas eu quero com um set time
Reply
#7

pawn Код:
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}
Reply
#8

pawn Код:
Descongelar(playerid);

if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid, -2706.3394,218.2382,4.1797);
    TogglePlayerControllable(playerid,0);
    SetTimerEx("Descongelar", 2000, false, "d", playerid);
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    format(string, sizeof(string), "{FF0000}(/sft) {FFFF00}Player {FF0000}%s {FFFF00}Vocк foi teleportado para: {FF0000}San Fierro tuning",pName);
    GameTextForPlayer(playerid,"~g~Loading Objetos",2000,3);
    SendClientMessageToAll(playerid, string);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
}

public Descongelar(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
Reply
#9

Quote:
Originally Posted by Los
Посмотреть сообщение
pawn Код:
Descongelar(playerid);

if(!IsPlayerInAnyVehicle(playerid))
{
    SetPlayerPos(playerid, -2706.3394,218.2382,4.1797);
    TogglePlayerControllable(playerid,0);
    SetTimerEx("Descongelar", 2000, false, "d", playerid);
    new string[128], pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
    format(string, sizeof(string), "{FF0000}(/sft) {FFFF00}Player {FF0000}%s {FFFF00}Vocк foi teleportado para: {FF0000}San Fierro tuning",pName);
    GameTextForPlayer(playerid,"~g~Loading Objetos",2000,3);
    SendClientMessageToAll(playerid, string);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
}

public Descongelar(playerid)
{
    TogglePlayerControllable(playerid, 1);
    return 1;
}
tava lendo um topico igual ao seu so falto uma coisa nsse seu

o forward '-'
Reply
#10

Quote:
Originally Posted by goku114
Посмотреть сообщение
tava lendo um topico igual ao seu so falto uma coisa nsse seu

o forward '-'
Nгo faz diferenзa com o forward ou sem. Estou declarando uma callback do mesmo jeito.

Abraзos.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)