Build Status

samp-winter-edition

sampctl

Installation

Simply install to your project:

sampctl package install emmett-white/samp-winter-edition

Include in your code and begin using the library:

#include <winteredition>

Usage

Functions

  • Snowflakes
stock Winter_SetSnowflakeStatus(const playerid, bool: status = true)
stock Winter_GetSnowflakeStatus(const playerid) return snowFallingStatus[playerid];

// Example
CMD:snowflakes(playerid, const string: params[])
{
    Winter_SetSnowflakeStatus(playerid, !Winter_GetSnowflakeStatus(playerid));

    return 1;
}
  • Snow objects (LOS SANTOS :c)
stock Winter_ShowSnowObjects(const playerid, bool: status = true)
stock Winter_GetSnowObjStatus(const playerid) return snowObjStatus[playerid];

// Example
CMD:snowobjects(playerid, const string: params[])
{
    Winter_ShowSnowObjects(playerid, !Winter_GetSnowObjStatus(playerid));

    return 1;
}
  • Winter cap
stock Winter_SetSnowCapStatus(const playerid, bool: status = true)
stock Winter_GetSnowCapStatus(const playerid) return snowCapStatus[playerid];

// Example
CMD:cap(playerid, const string: params[])
{
    Winter_SetSnowCapStatus(playerid, !Winter_GetSnowCapStatus(playerid));

    return 1;
}
  • Cold breath
stock Winter_SetColdBreathStatus(const playerid, bool: status = true)
stock Winter_GetColdBreathStatus(const playerid) return coldBreathStatus[playerid];

// Example
CMD:coldbreath(playerid, const string: params[])
{
    Winter_SetColdBreathStatus(playerid, !Winter_GetColdBreathStatus(playerid));

    return 1;
}

Testing

To test, simply run the package:

sampctl package run