samp.directory
← Betikler ve kütüphaneler

leon-sx/script-utilities-pawn

Some utilities to facilitate your daily programming

Filterscript★ 3Haz 2021 güncellendiLisans yokPawn
GitHub’da aç

Bu deponun lisans dosyası yok. Okumak için herkese açık, ama bu tek başına yeniden kullanma izni vermez.

README.md

Utilities to program the pawn language

Some utilities to facilitate your daily programming

How to use

Note: if any utility does not work correctly contact me

GetDate()

  new string[200];
  format(string, 200, "Date: %s", GetDate());

GetHour()

  new string[200];
  format(string, 200, "Hour: %s", GetHour());

VehicleHealth(playerid)

  new string[200];
  format(string, 200, "Vehicle Health: %s", VehicleHealth(playerid));

PlayerArmour(playerid)

  new string[200];
  format(string, 200, "Armour Health: %.1f", PlayerArmour(playerid));

ShowPlayerDialogEx(playerid, dialogid, style, caption[], info[], string[], button1[], button2[])

  new string[200];
  ShowPlayerDialogEx(playerid, 1, DIALOG_STYLE_MSGBOX, "Example", "Eu sou %s", Nome(playerid), ":D", "");

SendClientMessageEx(playerid, color, const str[], {Float,_}:...)

SendClientMessageEx(playerid, -1, "O meu nome é %s.", Nome(playerid));

Nome(playerid)

note: is being used in the ShowPlayerDialogEx and SendClientMessageEx example

TextConverter(string[])

note: in the script is being used to include zcmd

CMD:cnn(playerid, params[])
{
    if(!IsPlayerHelper(playerid))
        return SendClientMessage(playerid, Erro, "Comando Inválido");

    new tmp[128];

    if(sscanf(params, "s[128]", tmp))
        return SendClientMessage(playerid, Erro, "Digite: /Cnn [mensagem]");

    TextConverter(tmp); //Convertendo

    format(String, sizeof(String), "~r~# ~p~%s~w~: %s ~r~#", PlayerInfo[playerid][Nome], tmp);
    GameTextForPlayer(playerid, String, 3000, 2);
    return 1;
} 

randomEx(minnum = cellmin, maxnum = cellmax)

new Money = randomEx(100, 800);
GivePlayerMoney(playerid, Dinheiro);

Contributors

leonsx (by include)

Calenzo (TextConverter)

Y_Less (randomEx)

Vision Team and Portal Samp (most utilities taken from there)

pawnutilities-pawn

Bu sayfa GitHub’ın depo hakkında yayımladıklarından oluşturulur. samp.directory kodu barındırmaz. Bu ilanla ilgili bir sorun bildir

leon-sx/script-utilities-pawn: SA-MP Filterscript | samp.directory