Help on 4 things.
#2

1- What does stop working?

2-

pawn Код:
CMD:exitinterior(playerid, params[])
{
    if(GetPlayerInterior != 17) // if they are not in interior 17
        return SendClientMessage(playerid, -1, "You are not in interior1!");
    // else, if they are in interior 17
    SendClientMessage(playerid,0xFFFF00AA,"You are exiting interior1");//mensaje que envia
    SpawnPlayer(playerid); // spawns a player
    SetPlayerInterior(playerid, 0); // reset interior to 0
    SetPlayerVirtualWorld(playerid, 0); // reset virtual world to 0
    return 1;
}
3- That's strange because your dm1 command looks fine (Except the SetPlayerPos).

4-
pawn Код:
new Kills[MAX_PLAYERS]; // a per-player global variable to store a player's kills in

stock SetPlayerColorAccordingToKills(playerid)
{
    if(Kills[playerid] == 1)
    {
        // Player has 1 kill, set their color (Use SetPlayerColor)
    }
    else if(Kills[playerid] == 2)
    {
        // Player has 2 kills, set their color (Use SetPlayerColor)
    }
    // Continue
}

public OnPlayerDeath(playerid, killerid, reason)
{
    if(IsPlayerConnected(killerid)) // if killerid is a connected player
    {
        Kills[killerid] ++; // increase the variable for killerid (+1)
        // The usage of the stock we made
        SetPlayerColorAccordingToKills(killerid);
    }
    return 1;
}
Reply


Messages In This Thread
Help on 4 things. - by daastle - 26.07.2012, 18:18
Re: Help on 4 things. - by [KHK]Khalid - 26.07.2012, 19:23

Forum Jump:


Users browsing this thread: 1 Guest(s)