Script Request Thread #5
#41

/startjob -> IsPlayerInRangeOfPoint -> Set Checkpoint
Enter Checkpoint -> IsPlayerInRangeOfPoint -> Pay
Reply
#42

Quote:
Originally Posted by jameskmonger
Посмотреть сообщение
/startjob -> IsPlayerInRangeOfPoint -> Set Checkpoint
Enter Checkpoint -> IsPlayerInRangeOfPoint -> Pay
Can re-write the in a pawno code please?
Reply
#43

Well I stumbled across the mask system I cannot continue, I've tried using filterscript and I'm just not good with setting player objects, I did it for armor, and other ones but can't on this one if someone can help me out

pawn Код:
if(PlayerInfo[playerid][pMask] == 1)
            {
             //Code here
                return 1;
            }
What I'd ask for help is two or more masks that are adjusted good and they move according to the head.. so I can make a dialog and b ased on what they choose they get that mask.
Reply
#44

Quote:
Originally Posted by cloudysky
Посмотреть сообщение
Can re-write the in a pawno code please?
No, I've given you everything you need.
Reply
#45

i need an magnet lifts car script is that possible if sow could anyone make this
Reply
#46

guys iam request list car price in dealership
Reply
#47

/buyvehicle ->
pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Cars","Car 1 - Price\r\nCar 2 - Price\r\nCar 3 - Price","Buy", "Cancel");
Reply
#48

Quote:
Originally Posted by jameskmonger
Посмотреть сообщение
/buyvehicle ->
pawn Код:
ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Cars","Car 1 - Price\r\nCar 2 - Price\r\nCar 3 - Price","Buy", "Cancel");
more details for list vehicle price
Reply
#49

Hello does anyone have/can make me a simple tax FS so that every hour players get charged 1/5th of the money they currently have for tax?
Reply
#50

Quote:
Originally Posted by sherlock
Посмотреть сообщение
Hello does anyone have/can make me a simple tax FS so that every hour players get charged 1/5th of the money they currently have for tax?
SetTimer for 1 hour -> new tax; tax = GetPlayerMoney(playerid) / 5; -> GivePlayerMoney(playerid, -tax);
Reply
#51

guys i request brutally wounded
Reply
#52

Quote:
Originally Posted by gondes
Посмотреть сообщение
guys i request brutally wounded
More information please?

And to the tax guy, i used james's code and i havn't tested it so hopefully it will work
pawn Код:
//Under OnGameModeinit
SetTimer("TaxTimer",3600000,true);

//anywhere in the script just not in another callback.
forward TaxTimer();
public TaxTimer()
{
    for(new j;j<MAX_PLAYERS;j++)
    {
        new tax;
        tax = GetPlayerMoney(j) / 5;
        GivePlayerMoney(j, -tax);
    }
    return 1;
}
Reply
#53

ok thx that is the whole thing? because i have never scripted FS in my life :P I only script cleo XD
Reply
#54

help to include lastname when use command ..i only see firstname wen i use /me what the problem WTF??

CMD:me(playerid, params[]){
if(isnull(params)) return SendClientMessage(playerid, yellow, "/me [text]");
new
string[128],
pName[20 char]
;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "* %s %s *", pName, params);
return SendClientMessageToAll(0xFFFFFFFF, string);
}
Reply
#55

pawn Код:
CMD:me(playerid, params[])
{
    new
        pName[MAX_PLAYER_NAME],
        String[128];
    if(isnull(params)) return SendClientMessage(playerid, yellow, "/me [text]");
   
    GetPlayerName(playerid, pName, sizeof(pName));

    format(String, sizeof(String), "* %s %s *", pName, params);
    return SendClientMessageToAll(0xFFFFFFFF, String);
}
Reply
#56

Quote:
Originally Posted by sherlock
Посмотреть сообщение
ok thx that is the whole thing? because i have never scripted FS in my life :P I only script cleo XD
Depends, i made that so you could add it into your GM
Reply
#57

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
pawn Код:
CMD:me(playerid, params[])
{
    new
        pName[MAX_PLAYER_NAME],
        String[128];
    if(isnull(params)) return SendClientMessage(playerid, yellow, "/me [text]");
   
    GetPlayerName(playerid, pName, sizeof(pName));

    format(String, sizeof(String), "* %s %s *", pName, params);
    return SendClientMessageToAll(0xFFFFFFFF, String);
}
ok tnx but how to show without underscore of player name? i tried but not work how??

here code....
pawn Код:
CMD:me(playerid, params[])
{
    new
        pName[MAX_PLAYER_NAME],
        String[128];
    if(isnull(params)) return SendClientMessage(playerid, yellow, "|| ~Usage: /me [TEXT]~ ||");

    new string[128];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string,sizeof(string),"%s: %s",RemoveUnderScore(playerid),text);
    return SendClientMessageToAll(0xFFFFFFFF, String);
}

//-
stock RemoveUnderScore(playerid){
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    for(new i = 0; i < MAX_PLAYER_NAME; i++){
    if(name[i] == '_') name[i] = ' ';}
    return name;}
Reply
#58

Im Requesting 2 commands...

/heal [PLAYERID]
/ban [PLAYERID] [REASON]

in strcmp.. nor dcmd or others..
Reply
#59

Quote:
Originally Posted by Larsey123IsMe
Посмотреть сообщение
Im Requesting 2 commands...

/heal [PLAYERID]
/ban [PLAYERID] [REASON]

in strcmp.. nor dcmd or others..
pawn Код:
if(strcmp("/ban", cmd, true) == 0)
    {
        if(PlayerInfo[playerid][pAdminLevel] > 0)
        {
            tmp = strtok(cmdtext,idx);
            if(!strlen(tmp))
            {
                return SendClientMessage(playerid,COLOR_LIGHTRED,"USAGE: /ban [id] [reason]");
            }
            new reason[128];
            reason = strrest(cmdtext, idx);
            if (!strlen(reason)) SendClientMessage(playerid,COLOR_LIGHTRED,"USAGE: /ban [id] [reason]");
            new id = strval(tmp);
            new pid = playerid;
            if(!IsPlayerConnected(id))
            {
                return SendClientMessage(playerid,COLOR_GRAY,"AdmCmd: This player is not online!");
            }
            new globalmsg[100];
            new adminid[MAX_PLAYERS], victimid[MAX_PLAYERS];
            GetPlayerName(pid, adminid, sizeof(victimid));
            GetPlayerName(id, victimid, sizeof(victimid));
            format(globalmsg,sizeof(globalmsg),"AdmWarn: Administrator %s has banned player %s [%s]",adminid,victimid, reason);
            SendClientMessageToAll(COLOR_LIGHTBLUE,globalmsg);
            PlayerInfo[id][pAccountLocked] = 1;
            BanEx(id, reason);
            return 1;
        }
        else
        {
            SendClientMessage(playerid,COLOR_GRAY,"You don't have authorization.");
            return 1;
        }
    }

stock strrest(const string[], index)
{
    new length = strlen(string),offset = index,result[128];
    while ((index < length) && ((index - offset) < (sizeof(result) - 1)) && (string[index] > '\r'))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
Reply
#60

* ignore this post
Reply


Forum Jump:


Users browsing this thread: 35 Guest(s)