SA-MP Forums Archive
[AJUDA] Leiam Aqui Por Favor :D - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Leiam Aqui Por Favor :D (/showthread.php?tid=340893)



[AJUDA] Leiam Aqui Por Favor :D - Jake_Dunlapp - 08.05.2012

PHP код:
    if(strcmp(cmdtext,"/drift",true)==0)
    {
     new 
pname[MAX_PLAYER_NAME];
      new 
string [125];
       
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
    new 
vehicleid GetPlayerVehicleID(playerid);
    new 
State GetPlayerState(playerid);
    if(
IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
    {
    
GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6);
    
LinkVehicleToInterior(vehicleid,0);
    
SetPlayerInterior(playerid,0);
    return 
SetVehiclePos(vehicleid,-306.6964,1532.6012,75.3594);
    }
    
SetPlayerPos(playerid,-306.6964,1532.6012,75.3594);
    
SetPlayerInterior(playerid,0);
    
GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6);
    
format(stringsizeof(string), "{FFFF00}[BTDM]{00FFFF} %s Foi Para {FFFFFF}Drift /drift!"pname);
    
SendClientMessageToAll(0x00FFFFFFstring);
    return 
1;
    } 
O Que Devo Mudar Para Que Quando Eu Me Teleportar Usando Um Carro A Mensagem Que Eu Fui Para O Drift Apareca Da Mesma Maneira


Re: [AJUDA] Leiam Aqui Por Favor :D - steki. - 08.05.2012

Eu Nгo Sei, Mas Eu Atй Ajudaria Se Vocк Nгo Colocasse Todas As Palavras Na Frase Com A Primeira Letra Em Caixa Alta.


Respuesta: [AJUDA] Leiam Aqui Por Favor :D - Schocc - 08.05.2012

pawn Код:
if(strcmp(cmdtext,"/drift",true)==0)
    {
     new pname[MAX_PLAYER_NAME];
      new string [125];
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    new vehicleid = GetPlayerVehicleID(playerid);
    new State = GetPlayerState(playerid);
    if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
    {
    GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6);
    LinkVehicleToInterior(vehicleid,0);
    format(string, sizeof(string), "{FFFF00}[BTDM]{00FFFF} %s Foi Para {FFFFFF}Drift /drift!", pname);
    SendClientMessageToAll(0x00FFFFFF, string);
    SetPlayerInterior(playerid,0);
    return SetVehiclePos(vehicleid,-306.6964,1532.6012,75.3594);
    }
    SetPlayerPos(playerid,-306.6964,1532.6012,75.3594);
    SetPlayerInterior(playerid,0);
    GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6);
    format(string, sizeof(string), "{FFFF00}[BTDM]{00FFFF} %s Foi Para {FFFFFF}Drift /drift!", pname);
    SendClientMessageToAll(0x00FFFFFF, string);
    return 1;
    }



Re: [AJUDA] Leiam Aqui Por Favor :D - tonisantolia - 09.05.2012

PHP код:
    if(strcmp(cmdtext,"/drift",true)==0
    { 
     new 
pname[MAX_PLAYER_NAME]; 
      new 
string [125]; 
       
GetPlayerName(playeridpnameMAX_PLAYER_NAME); 
    new 
vehicleid GetPlayerVehicleID(playerid); 
    new 
State GetPlayerState(playerid); 
    
GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6); 
    
format(stringsizeof(string), "{FFFF00}[BTDM]{00FFFF} %s Foi Para {FFFFFF}Drift /drift!"pname); 
    
SendClientMessageToAll(0x00FFFFFFstring); 
    if(
IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER
    { 
    
GameTextForPlayer(playerid,"Bem Vindo A Pista De Drift",4000,6); 
    
LinkVehicleToInterior(vehicleid,0); 
    
SetPlayerInterior(playerid,0); 
    return 
SetVehiclePos(vehicleid,-306.6964,1532.6012,75.3594); 
    } 
    
SetPlayerPos(playerid,-306.6964,1532.6012,75.3594); 
    
SetPlayerInterior(playerid,0); 
    return 
1
    }