Jump to content

Pawn: Fraktionschat / Tutorial #1 - 2018


PresidenT AnaS
 Share

Recommended Posts

Hi , Today am here with new pawn . Fraktionschat : Tutorial

 

 

//Farben
#define COLOR_RED 0xFF0000FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_BLUE 0x009BFFFF
#define COLOR_YELLOW 0xEBFF00FF
#define COLOR_CHAT 0xFEFEFEFF
#define COLOR_FADE1 0xE6E6E6FF
#define COLOR_FADE2 0xD1CFD1FF
#define COLOR_FADE3 0xBEC1BEFF
#define COLOR_FADE4 0x919397FF

//Dialoge
#define DIALOG_TELEPORT 1
#define DIALOG_REGISTER 2
#define DIALOG_LOGIN 3
#define DIALOG_AUTOHAUS 4

//MySQL
#define db_host "127.0.0.1"
#define db_user "samp"
#define db_pass "mysqlpasswort"
#define db_db "samp"

//Limits
#define CHAT_RADIUS 40
#define CHAT_FADES 5

 

 

}

enum buildingsEnum{
    Float:b_x,
    Float:b_y,
    Float:b_z,
    Float:b_ix,
    Float:b_iy,
    Float:b_iz,
    b_interior,
    b_shopname[15]
}

enum carEnum{
    id_x,
    model,
    besitzer,
    Float:c_x,
    Float:c_y,
    Float:c_z,
    Float:c_r,
    db_id
}

enum autohausEnum{
    Float:s_
x,
    Float:s_
y,
    Float:s_
z,
    Float:s_
r
}

enum autohauscarEnum{
    model,
    Float:c_x,
    Float:c_y,
    Float:c_z,
    Float:c_r,
    c_preis,
    ah_id,
    id_x
}

enum fraktEnum{
    f_name[
128],
    Float:f_x,
    Float:f_y,
    Float:f_z,
    Float:f_r,
    f_inter,
    f_world,
    f_color
}

  //Farm
                SetPlayerPos(playerid,0.0,0.0,6.0);
            }
        }

ocmd:makeleader(playerid, params[])
{
    if(!isAdmin(playerid, 3))return SendClientMessage(playerid,
        COLOR_RED, "Dein Adminrang ist zu niedrig.");
    new pID, fID;
    if(sscanf(params,"ui",pID,fID))return SendClientMessage(playerid,
        COLOR_RED, "INFO: /makeleader [playerid] [fraktid]");
    if(fID >= sizeof(fInfo))return SendClientMessage(playerid,
        COLOR_RED, "Fraktion existiert nicht.");
    sInfo[pID][fraktion] = fID;
    sInfo[pID][rang] = 6;
    new string[128];
    format(string,sizeof(string),
        "%s hat dich zum Leader der Fraktion %s gemacht",
        getPlayerName(playerid), fInfo[fID][f_name]);
    SendClientMessage(pID, COLOR_YELLOW, string);
    SendClientMessage(playerid, COLOR_RED, "Du hast einen Spieler zum Leader gemacht.");
    return 1;
}
 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • 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.