[AJUDA]pname
#1

Seguinte, Eu Fiz um comando Baseando-se em outros Fs/Gms.. No Caso eu uso pname e iname em todo meu GM e sу nesses dois comandos que nгo aparece o nick da pessoa que digitou /stunt ou /rampavelox, Sу aparece o ID
Alguem Ajuda Pf *-*

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
     new 
cmd[256];
    new    
idx;
    
cmd strtok(cmdtextidx);
    new 
string[256];
    new 
pname[MAX_PLAYER_NAME];
    new 
iname[MAX_PLAYER_NAME];
        if(
strcmp("/Stunt"cmdtexttrue8) == 0)
    {
        new 
VehicleID;
        
VehicleID GetPlayerVehicleID(playerid);
        
SetVehiclePos(VehicleID,835.9766,-1998.6298,12.8672);
        
SetVehicleZAngle(GetPlayerVehicleID(playerid),271.5179);
        if(!
IsPlayerInAnyVehicle(playerid)) return SetPlayerPos(playerid,835.9766,-1998.6298,12.8672);
        
GameTextForPlayer(playerid,"Bem Vindo! ~n~Stunt Advanced,2000,1);
        format(string, sizeof(string), "
%s(id:%dFoi para o Stunt Advanced {FF0000}( /stunt )", pname,iname);
        SendClientMessageToAll(0xFFFFFFAA, string);
    return 1;
    }
    if(strcmp("
/rampavelox", cmdtext, true, 8) == 0)
    {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,1246.8462,829.3766,8.7198);
        SetVehicleZAngle(GetPlayerVehicleID(playerid),271.5179);
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0x5484FFFF,"
[ERRO]Vocк nгo Estб em um Carro!");
        Desgelos1[playerid] = SetTimerEx("
Destravar", 1000,true,"i",playerid);
        format(string, sizeof(string), "
%s(id:%dFoi para a RampaVelox {FF0000}( /RampaVelox )", pname,iname);
        SendClientMessageToAll(0xFFFFFFAA, string);
        return 1;
    } 
Reply


Messages In This Thread
[AJUDA]pname - by gabrieldefreitas11 - 03.12.2011, 21:03
Re: [AJUDA]pname - by ViniBorn - 03.12.2011, 21:08
Re: [AJUDA]pname - by array13 - 03.12.2011, 21:12
Respuesta: [AJUDA]pname - by gabrieldefreitas11 - 03.12.2011, 21:26

Forum Jump:


Users browsing this thread: 1 Guest(s)