[AJUDA] Onde seria o lugar certo de adicionar
#1

Onde seria o lugar certo de adicionar eu ja criei um equipar mas agora aonde eu adiciono o outro;?
esse e o que eu criei
pawn Код:
CreatePickup(1242, 1, 376.2334,-2048.6467,7.8301);
    if(strcmp(cmd, "/equipar", true) == 0)
        {
    if(GetPlayerOrg(playerid) == 21)
    {
    if(PlayerToPoint(3, playerid, 376.2334,-2048.6467,7.8301))
{

    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 24, 348);
    GivePlayerWeapon(playerid, 25, 100);
    GivePlayerWeapon(playerid, 5, 1);
    GivePlayerWeapon(playerid, 29, 150);
    GivePlayerWeapon(playerid, 33, 50);
    GivePlayerWeapon(playerid, 29, 500);
    GivePlayerWeapon(playerid, 34, 20);
    GivePlayerWeapon(playerid, 16, 2);
    SetPlayerHealth(playerid, 100);
    SetPlayerArmour(playerid, 100);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк pegou seu equipamento de {FFFF00}Mercenario");
}
}
    return 1;
}
OBS ESSE TA FUNCIONANDO

A PERGUNTA Й AONDE EU ADICIONO ESSE
pawn Код:
CreatePickup(1242, 23, 2818.5217,-1169.8910,1025.577,0);

if(strcmp(cmd, "/equipar", true) == 0)
{
if(GetPlayerOrg(playerid) == 5)
{
if(PlayerToPoint(3, playerid, 2818.5217,-1169.8910,1025.577))
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 34;
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 29, 150);
GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк pegou seu equipamento de {FFFF00}Gangster");
}
}
return 1;
}
Reply
#2

O CreatePickup coloque no mesmo lugar do outro , sу que uma linha abaixo , e este comando equipar , coloque na public OnPlayerCommandText.
Reply
#3

pawn Код:
CreatePickup(1242, 1, 376.2334,-2048.6467,7.8301); //ongamemodeinit

//comando onplayercommandtext
Reply
#4

pawn Код:
Public Ongamemodeinit:

CreatePickup(1242, 23, 2818.5217,-1169.8910,1025.577,0);

Public Onplayercommandtext:

if(strcmp(cmd, "/equipar", true) == 0)
{
if(GetPlayerOrg(playerid) == 5)
{
if(PlayerToPoint(3, playerid, 2818.5217,-1169.8910,1025.577))
{
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 24, 34;
GivePlayerWeapon(playerid, 25, 100);
GivePlayerWeapon(playerid, 5, 1);
GivePlayerWeapon(playerid, 29, 150);
GivePlayerWeapon(playerid, 33, 50);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 34, 20);
GivePlayerWeapon(playerid, 16, 2);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
SendClientMessage(playerid, COLOR_LIGHTRED, "Vocк pegou seu equipamento de {FFFF00}Gangster");
}
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)