[Ajuda] variavel pName
#1

Esta varriavel esta bugando ou seila no meu cmd sabem oque pode ser ?


Код HTML:
CMD:derby(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,625.6036,-2120.1682,8.6458);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para a arena derby ! ( /derby )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}
Reply
#2

Seila coloca assim
PHP код:
GetPlayerName(playeridpnamesizeof pname); 
Vк o que da!
Reply
#3

pawn Код:
CMD:derby(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,625.6036,-2120.1682,8.6458);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
        new Name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Name, sizeof(Name));
        format(string, sizeof(string), "%s foi para a arena derby ! ( /derby )", Name);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}
Reply
#4

Talvez assim ?

pawn Код:
CMD:derby(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new VehicleID = GetPlayerVehicleID(playerid), Name[24];
        SetVehiclePos(VehicleID, 625.6036, -2120.1682, 8.6458);
        SetVehicleZAngle(GetPlayerVehicleID(playerid);, 100.0);
        GetPlayerName(playerid, Name, 24);
        format(string, sizeof(string), "%s foi para a arena derby ! ( /derby )", Name);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid, 0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid, COLOR_RED, "Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}
Reply
#5

Eu quero saber no que eu errei e nao pedi codigos --'
Reply
#6

Qual tipo de problema?

Erro ao compilar?
Frase mostrando-se cortada?
Frase nгo mostrando o nick-name do player?
Reply
#7

Se vocк falasse qual й o erro nй meu jovem, ninguйm aqui й mбgico nгo.

pawn Код:
SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
pawn Код:
SetVehicleZAngle(VehicleID, 100.0);
Reply
#8

Voce errou na linha GetPlayerName no final em vez de "MAX_PLAYER_NAME" e "sizeof (pname));"
Reply
#9

Assim amigo pra ser exato:

Код:
F:\Users\weverton\Downloads\sb1.pwn(119) : warning 201: redefinition of constant/macro (symbol "MAX_PICKUPS")
F:\Users\weverton\Downloads\sb1.pwn(4176) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4177) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4197) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4198) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4352) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4357) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4374) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4375) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4399) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4404) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4425) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4426) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4449) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4454) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4477) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4482) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4504) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4505) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4528) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4533) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4552) : error 021: symbol already defined: "cmd_lvstunt"
F:\Users\weverton\Downloads\sb1.pwn(4555) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4556) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4580) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4585) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4595) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4596) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4613) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4614) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4633) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4639) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4660) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4660) : warning 204: symbol is assigned a value that is never used: "string"
F:\Users\weverton\Downloads\sb1.pwn(4660 -- 4680) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4686) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4721) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4722) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4738) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4744) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4771) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4772) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4793) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4794) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4809) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4810) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4831) : error 029: invalid expression, assumed zero
F:\Users\weverton\Downloads\sb1.pwn(4835) : error 021: symbol already defined: "GetPlayerName"
F:\Users\weverton\Downloads\sb1.pwn(4846) : error 010: invalid function or declaration
F:\Users\weverton\Downloads\sb1.pwn(4853) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4858) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4879) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4884) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4905) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4910) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4931) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4956) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4960) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4979) : warning 219: local variable "string" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(4980) : warning 219: local variable "pname" shadows a variable at a preceding level
F:\Users\weverton\Downloads\sb1.pwn(5029) : error 010: invalid function or declaration
F:\Users\weverton\Downloads\sb1.pwn(5077) : warning 203: symbol is never used: "pname"
F:\Users\weverton\Downloads\sb1.pwn(5077) : warning 203: symbol is never used: "string"
Eu passei de OnplayerComandText para ZCMD

pawn Код:
CMD:ajuda(playerid)
{
    ShowPlayerDialog(playerid, 157, DIALOG_STYLE_MSGBOX, "Ajuda", "/Comandos , /Teleportes . \
    Qualquer duvida Contate Um Adm."
, "Fechar", "");
    return 1;
}
   
CMD:teleportes(playerid)
{
    ShowPlayerDialog(playerid, 199, DIALOG_STYLE_MSGBOX, "teleportes", "Teleportes de Stunt: /telesstunt \n Teleportes de DM: /telesdm \n \
    Teleportes de Race: /telesrace \n Teleportes diversos: /teles4fun  "
, "Fechar", "");
    return 1;
}
   
CMD:telesstunt(playerid)
{
    ShowPlayerDialog(playerid, 121, DIALOG_STYLE_MSGBOX, "TelesStunt", "/lvstunt , /stunt , /drop , /dropexplosivo \n \
    /atlants /montanharussa"
, "Fechar", "");
    return 1;
}

CMD:telesdm(playerid)
{
    ShowPlayerDialog(playerid, 234, DIALOG_STYLE_MSGBOX, "TelesDM", "/Crazyarena , /arenax1 , /shipwar \n \
    /arenasangrenta , /remotedm , /sniperdm , /rustlerw"
, "Fechar", "");
    return 1;
}

CMD:telesrace(playerid)
{
    ShowPlayerDialog(playerid, 423, DIALOG_STYLE_MSGBOX, "TelesRace", "/drift /race /flat /circuito1 \n \
    /circuito2 , /circuito3 , /circuito4"
, "Fechar", "");
    return 1;
}

CMD:teles4fun(playerid)
{
    ShowPlayerDialog(playerid, 223, DIALOG_STYLE_MSGBOX, "Teles4Fun", "/atlants , /estacionamento , /lc , /derby", "Fechar", "");
    return 1;
}


CMD:comandos(playerid)
{
    ShowPlayerDialog(playerid, 143, DIALOG_STYLE_MSGBOX, "Comandos", "/Godc, /kill , /teleportes e /hotcaffe", "Fechar", "");
    return 1;
}

CMD:hotcaffe(playerid)
{
    ShowPlayerDialog(playerid, 122, DIALOG_STYLE_MSGBOX, "HotCaffe", "Para ficar em posiзгo de transar para mulheres digite: /mulhersexo \n \
    Para comer a mulher digite: /comermulher, Para ficar de 4 digite: /ficarde4 \n Para rolar e deitar digite: /mulherfudida \n \n \n \n \n "
, "Fechar", "");
    return 1;
}

CMD:stunt(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,-66.5618,1852.6011,17.2266);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 275.9698);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o Stunt( /stunt )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}

CMD:crazyarena(playerid)
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para a Crazy Arena( /crazyarena )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,229.359,-1807.635,4.141);
    SetPlayerFacingAngle(playerid,226.0);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    GivePlayerWeapon(playerid,9,0);
    GivePlayerWeapon(playerid,46,0);
    GivePlayerWeapon(playerid,16,0);
    GivePlayerWeapon(playerid,26,9999);
    GivePlayerWeapon(playerid,31,9999);
    GivePlayerWeapon(playerid,24,9999);
    GivePlayerWeapon(playerid,32,9999);
    return 1;
}

CMD:race(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,2068.362,872.231,8.764);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para a Race( /Race )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}

CMD:lvstunt(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        GameTextForPlayer(playerid,"~w~Bem Vindo ao Stunt em LAs Venturas", 3502, 10);
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para os Stunts em Las VEnturas!( /lvstunt )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        SetVehiclePos(VehicleID,2067.2166,865.8118,6.7959);
        SetPlayerInterior(playerid,0);
    }
    else
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,2067.2166,865.8118,6.7959);
    }
    return 1;
}

CMD:flat(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,1547.1683,51.6628,25.5063);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o circuito de FLAT OUT 2( /Flat )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}



CMD:atlants(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,426.3199,-2215.1509,-28.2578);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 179.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o Reino Perdido de Atlants( /Atlants )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}




CMD:arenax1(playerid)
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para a Arena x1 ( /arenax1 )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1437.3440,1677.8251,10.8203);
    SetPlayerFacingAngle(playerid,4.1726);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    GivePlayerWeapon(playerid,4,0);
    GivePlayerWeapon(playerid,26,9999);
    GivePlayerWeapon(playerid,31,9999);
    GivePlayerWeapon(playerid,24,9999);
    GivePlayerWeapon(playerid,32,9999);
    return 1;
}


CMD:drift(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,2284.951,1394.029,44.897);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 271.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o Drift( /drift )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}


CMD:lvstunt(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        GameTextForPlayer(playerid,"~w~Bem Vindo ao Stunt em LAs Venturas", 3502, 10);
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para os Stunts em Las VEnturas!( /lvstunt )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        SetVehiclePos(VehicleID,2067.2166,865.8118,6.7959);
        SetPlayerInterior(playerid,0);
    }
    else
    {
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,2067.2166,865.8118,6.7959);
    }
    return 1;
}


CMD:aerostunt(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,2140.5278,-2413.2410,13.5469);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 90.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o AeroStunt LS( /aerostunt )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SpawnPlayer(playerid);
    }
    else
    {
        new string[257];
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o AeroStunt LS( /aerostunt )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,1789.0929,-2678.1130,13.5469);
        SetPlayerFacingAngle(playerid,0.0);
        SpawnPlayer(playerid);
    }
    return 1;
}



CMD:estacionamento(playerid)
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para o Estacionamento( /estacionamento )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-30.963,1509.681,12.556);
    SetPlayerFacingAngle(playerid,101.0);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    return 1;
}



CMD:drop(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,3790.545,-1877.194,1802.409);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 89.0);
        SetVehicleHealth(GetPlayerVehicleID(playerid),999999);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o Drop( /drop )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}



CMD:x1(playerid)
{
    new string[257];
    ResetPlayerWeapons(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1111.1134,1727.9189,12.9423);
    SetPlayerFacingAngle(playerid,271.0);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    GivePlayerWeapon(playerid,4,0);
    GivePlayerWeapon(playerid,26,9999);
    GivePlayerWeapon(playerid,31,9999);
    GivePlayerWeapon(playerid,24,9999);
    GivePlayerWeapon(playerid,32,9999);
    return 1;
}


CMD:montanharussa(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,-244.207,2292.398,111.640);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 198.0);
        SetVehicleHealth(GetPlayerVehicleID(playerid),999999);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para a Montanha Russa( /montanharussa )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}


CMD:godc(playerid, params[])
{
    if (IsPlayerInAnyVehicle(playerid))
    {
        SetVehicleHealth(GetPlayerVehicleID(playerid),999999);
        SendClientMessage(playerid, COLOR_WHITE, "Carro em God Mode");
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"Erro: Vocк nгo estб em um veнculo!");
    }
    return 1;
}


CMD:lc(playerid)
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para Liberty City ! ( /lc )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    SetPlayerInterior(playerid,1);
    SetPlayerPos(playerid,-732.0,504.0,1372.5);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    return 1;
}


CMD:dropexplosivo(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,2523.666,-2715.285,4763.050);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0);
        SetVehicleHealth(GetPlayerVehicleID(playerid),999999);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o Drop Explosivo( /dropexplosivo )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        SetPlayerInterior(playerid,0);
        ResetPlayerWeapons(playerid);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}
       

CMD:kill(playerid)
{
    SetPlayerHealth(playerid,0.0);
    SendClientMessage(playerid, -1, "Vocк se matou");
    return 1;
}

CMD:shipwar(playerid, params[])
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para a Ship War ! ( /shipwar )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-649.646,-5357.238,0.773);
    SetPlayerFacingAngle(playerid,259.0);
    ResetPlayerWeapons(playerid);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    GivePlayerWeapon(playerid,8,0);
    GivePlayerWeapon(playerid,32,9999);
    GivePlayerWeapon(playerid,26,9999);
    GivePlayerWeapon(playerid,16,9999);
    GivePlayerWeapon(playerid,35,9999);
    return 1;
}
   

CMD:sniperdm(playerid, params[])
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para a Sniper DM ! ( /sniperdm )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,183.111,1934.011,17.531);
    SetPlayerFacingAngle(playerid,89.0);
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid,34,9999);
    return 1;
}
   

CMD:arenasangrenta(playerid, params[])
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para a arena sangrenta ! ( /arenasangrenta )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,-2023.076,-961.297,31.825);
    SetPlayerFacingAngle(playerid,250.0);
    ResetPlayerWeapons(playerid);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    GivePlayerWeapon(playerid,8,0);
    GivePlayerWeapon(playerid,32,9999);
    GivePlayerWeapon(playerid,26,9999);
    GivePlayerWeapon(playerid,33,9999);
    GivePlayerWeapon(playerid,30,9999);
    GivePlayerWeapon(playerid,16,9999);
    GivePlayerWeapon(playerid,35,9999);
    return 1;
}
   

CMD:remotedm(playerid, params[]))
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para a Remote DM ! ( /remotedm )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,1612.075,1164.837,13.879);
    SetPlayerFacingAngle(playerid,0.0);
    ResetPlayerWeapons(playerid);
    SetPlayerArmour(playerid, 100.0);
    SetPlayerHealth(playerid, 100.0);
    GivePlayerWeapon(playerid,40,9999);
    GivePlayerWeapon(playerid,39,9999);
    return 1;
}

CMD:circuito1(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,2954.5571,-2756.5898,44.4023);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o circuito 1 do Server ! ( /circuito1 )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
       SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
       SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}

CMD:circuito2(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
       new string[257];
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,1518.5868,1567.7882,14.8203);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
       new pname[MAX_PLAYER_NAME];
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s foi para o circuito 2 do Server ! ( /circuito2 )", pname);
       SendClientMessageToAll(COR_LARANJA, string);
       ResetPlayerWeapons(playerid);
       SetPlayerInterior(playerid,0);
       SetPlayerArmour(playerid, 100.0);
       SetPlayerHealth(playerid, 100.0);
    }
    else
    {
       SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
       SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}

CMD:circuito3(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new string[257];
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,-1231.4513,201.9816,18.1484);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para o circuito 3 do Server ! ( /circuito3 )", pname);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}

CMD:circuito4(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
       new string[257];
       new VehicleID = GetPlayerVehicleID(playerid), Name[24];
       SetVehiclePos(VehicleID,3408.7566,-1309.3259,9.1514);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
       GetPlayerName(playerid, Name, 24);
       format(string, sizeof(string), "%s foi para o circuito 4 do Server ! ( /circuito4 )", Name);
       SendClientMessageToAll(COR_LARANJA, string);
       ResetPlayerWeapons(playerid);
       SetPlayerInterior(playerid,0);
       SetPlayerArmour(playerid, 100.0);
       SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}

CMD:derby(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new VehicleID;
        new string[257];
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,625.6036,-2120.1682,8.6458);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para a arena derby ! ( /derby )", pname);
        SendClientMessageToAll(-1, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,-1,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,-1,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}

CMD:rustlerw(playerid, params[])
{
    new string[257];
    new pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
    format(string, sizeof(string), "%s foi para guerra de rustlers ! ( /rustlerw )", pname);
    SendClientMessageToAll(COR_LARANJA, string);
    SetPlayerPos(playerid, 307.3101,2537.2102,16.8165);
    SetPlayerHealth(playerid, 100.0);
    ResetPlayerWeapons(playerid);
    return 1;
}
Reply
#10

apenas troque "pName" por outro nome.


pawn Код:
CMD:derby(playerid, params[])
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,625.6036,-2120.1682,8.6458);
        SetVehicleZAngle(GetPlayerVehicleID(playerid), 100.0);
        new ipanema[MAX_PLAYER_NAME];
        GetPlayerName(playerid, ipanema, MAX_PLAYER_NAME);
        format(string, sizeof(string), "%s foi para a arena derby ! ( /derby )", ipanema);
        SendClientMessageToAll(COR_LARANJA, string);
        ResetPlayerWeapons(playerid);
        SetPlayerInterior(playerid,0);
        SetPlayerArmour(playerid, 100.0);
        SetPlayerHealth(playerid, 100.0);
    }
    else
    {
        SendClientMessage(playerid,COLOR_RED,"VOCК PRECISA ESTAR EM UM VEНCULO!");
        SendClientMessage(playerid,COLOR_RED,"Vб atй o Estacionamento para pegar um( /estacionamento ).");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)