SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 04/06/2012, 02:14 AM   #1
goku114
Huge Clucker
 
Join Date: Apr 2012
Posts: 219
Reputation: 9
Default [ajuda] Player nao descongela

pawn Code:
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);
                   }

Last edited by goku114; 04/06/2012 at 01:42 PM.
goku114 is offline   Reply With Quote
Old 04/06/2012, 02:22 AM   #2
s4kuL
Gangsta
 
s4kuL's Avatar
 
Join Date: Apr 2012
Posts: 635
Reputation: 38
Default Re: [ajuda] Conflito dialog

Cadê os SetPlayerPos?
s4kuL is offline   Reply With Quote
Old 04/06/2012, 12:33 PM   #3
goku114
Huge Clucker
 
Join Date: Apr 2012
Posts: 219
Reputation: 9
Default Re: [ajuda] Conflito dialog

tu nao consegue ver?
goku114 is offline   Reply With Quote
Old 04/06/2012, 01:35 PM   #4
s4kuL
Gangsta
 
s4kuL's Avatar
 
Join Date: Apr 2012
Posts: 635
Reputation: 38
Default Re: [ajuda] Conflito dialog

Ata, eu não abaixei ^^
s4kuL is offline   Reply With Quote
Old 04/06/2012, 01:56 PM   #5
BreakDriFT
High-roller
 
BreakDriFT's Avatar
 
Join Date: Jun 2010
Location: Las Venturas
Posts: 1,533
Reputation: 120
Default Re: [ajuda] Conflito dialog

pawn Code:
TogglePlayerControllable(playerid,0); // 0 congela 1 descongela.

pawn Code:
TogglePlayerControllable(playerid,1);
BreakDriFT is offline   Reply With Quote
Old 04/06/2012, 01:59 PM   #6
goku114
Huge Clucker
 
Join Date: Apr 2012
Posts: 219
Reputation: 9
Default Re: [ajuda] Conflito dialog

Quote:
Originally Posted by BreakDriFT View Post
pawn Code:
TogglePlayerControllable(playerid,0); // 0 congela 1 descongela.

pawn Code:
TogglePlayerControllable(playerid,1);
to ligado mas eu quero com um set time
goku114 is offline   Reply With Quote
Old 04/06/2012, 02:04 PM   #7
ReDKiiL
Gangsta
 
ReDKiiL's Avatar
 
Join Date: Apr 2011
Location: etc/hosts
Posts: 943
Reputation: 76
Default Re: [ajuda] Conflito dialog

pawn Code:
forward Unfreeze(playerid);
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid,1);
return 1;
}
ReDKiiL is offline   Reply With Quote
Old 04/06/2012, 02:05 PM   #8
Lós
High-roller
 
Lós's Avatar
 
Join Date: Sep 2010
Location: Casterly Rock
Posts: 3,872
Reputation: 277
Default Re: [ajuda] Conflito dialog

pawn Code:
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;
}
__________________
Lós is offline   Reply With Quote
Old 04/06/2012, 02:07 PM   #9
goku114
Huge Clucker
 
Join Date: Apr 2012
Posts: 219
Reputation: 9
Default Re: [ajuda] Conflito dialog

Quote:
Originally Posted by Los View Post
pawn Code:
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 '-'
goku114 is offline   Reply With Quote
Old 04/06/2012, 02:12 PM   #10
Lós
High-roller
 
Lós's Avatar
 
Join Date: Sep 2010
Location: Casterly Rock
Posts: 3,872
Reputation: 277
Default Re: [ajuda] Conflito dialog

Quote:
Originally Posted by goku114 View Post
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.
__________________
Lós is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ajuda]Conflito .ThePro Português/Portuguese 6 11/05/2012 04:44 PM
[Ajuda] Conflito Cristhian Português/Portuguese 3 13/04/2012 02:54 PM
[ajuda] NPC CONFLITO COM REGISTRAR D= Sonic Hero Português/Portuguese 2 14/08/2011 11:27 PM
[AJUDA]Conflito de Dialog MaGnO_357 Português/Portuguese 3 14/08/2011 12:07 PM


All times are GMT. The time now is 07:52 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.