Jump to content
  • 0

Question

8 answers to this question

Recommended Posts

Posted

Asta e comanda!!

[pawn]//--------------------------------------------[respawn]----------------------------------------

if(strcmp(cmd, "/respawn", true) == 0) // by Raulik

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /respawn [playerid/PartOfName]");

return 1;

}

new playa;

playa = ReturnUser(tmp);

if (PlayerInfo[playerid][pAdmin] >= 1)

{

    if(IsPlayerConnected(playa))

    {

        if(playa != INVALID_PLAYER_ID)

        {

        GetPlayerName(playa, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

SpawnPlayer(playa);

SetPlayerArmour(playerid,0.0);

format(string, sizeof(string), "[AdminCommand]: %s has respawned player %s",sendername,  giveplayer);

printf("%s",string);

format(string, sizeof(string), "[AdminCommand]: %s has been respawned by admin %s",giveplayer ,sendername);

ABroadCast(COLOR_ADMIN,string,1);

}

}

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "You don't have acces to this command");

}

}

return 1;

}[/pawn]

Posted

Asta e comanda!!

[pawn]//--------------------------------------------[respawn]----------------------------------------

if(strcmp(cmd, "/respawn", true) == 0) // by Raulik

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /respawn [playerid/PartOfName]");

return 1;

}

new playa;

playa = ReturnUser(tmp);

if (PlayerInfo[playerid][pAdmin] >= 1)

{

    if(IsPlayerConnected(playa))

    {

        if(playa != INVALID_PLAYER_ID)

        {

        GetPlayerName(playa, giveplayer, sizeof(giveplayer));

GetPlayerName(playerid, sendername, sizeof(sendername));

SpawnPlayer(playa);

SetPlayerArmour(playerid,0.0);

format(string, sizeof(string), "[AdminCommand]: %s has respawned player %s",sendername,  giveplayer);

printf("%s",string);

format(string, sizeof(string), "[AdminCommand]: %s has been respawned by admin %s",giveplayer ,sendername);

ABroadCast(COLOR_ADMIN,string,1);

}

}

}

else

{

SendClientMessage(playerid, COLOR_WHITE, "You don't have acces to this command");

}

}

return 1;

}[/pawn]

Posteaza la problema godfather bai nene ;))

Posted

Ruben" post="68239" timestamp="1303551088"]

Posteaza la problema godfather bai nene ;))

nab ti se pare alta comanda fata de a lui ?

Vezi la:

[pawn]if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)[/pawn]

Posted

Am gasit comanda acum ce trebuie sai fac??

[pawn] }

  if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)

{[/pawn]

Posted

Asta e toata comanda oare sa o sterg toata??

[pawn]if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)

{

    if(FirstSpawn[playerid] != 1)

    {

PlayerInfo[playerid][pDeaths] += 1;

SetPlayerHealth(playerid, 50.0);

if(PlayerInfo[playerid][pDonateRank] >= 6)

{

SetPlayerHealth(playerid, 100.0);

}

    SetPlayerInterior(playerid, 0);

        rand = random(sizeof(gMedicSpawns));

SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player

SetPlayerFacingAngle(playerid, 92.3221);

        TogglePlayerControllable(playerid, 0);

        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~You are recovering from your ~r~wounds~y~...", 35000, 3);

        MedicTime[playerid] = 1;

        ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);

        if(PlayerInfo[playerid][pDonateRank] > 0)

        {

            NeedMedicTime[playerid] = 20;

        }

        else

        {

        NeedMedicTime[playerid] = 40;

}

        PlayerPlaySound(playerid, 1062, 0.0, 0.0, 0.0);

    return 1;

}[/pawn]

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.