Script Request Thread #6
#81

Hey! I need a team car system.. Have searched on ****** but no one work :/
Classes:
gPlayerClass[playerid] = TRUCKER_CLASS;
gPlayerClass[playerid] = FARMER_CLASS;
Can someone make so when player if trucker or something and gonna enter a farmer vehicle he be set out from the car and get a message like : You can't enter a farmer vehicle
Reply
#82

Quote:
Originally Posted by TehSprit
Посмотреть сообщение
Hey! I need a team car system.. Have searched on ****** but no one work :/
Classes:
gPlayerClass[playerid] = TRUCKER_CLASS;
gPlayerClass[playerid] = FARMER_CLASS;
Can someone make so when player if trucker or something and gonna enter a farmer vehicle he be set out from the car and get a message like : You can't enter a farmer vehicle
You should group all vehicles in arrays like you've done with player-classes:

pawn Код:
new
    gClassVehicles[ MAX_JOB_CLASSES ][ MAX_CLASS_VEHICLES ]
;
Keep in mind that neither MAX_JOB_CLASSES nor MAX_CLASS_VEHICLES are actually defined - you'll need to do that for yourself.
Then you can add vehicles like this:

pawn Код:
gClassVehicles[ TRUCKER_CLASS ][ 0 ] = AddStaticVehicle( ... );
gClassVehicles[ TRUCKER_CLASS ][ 1 ] = AddStaticVehicle( ... );
gClassVehicles[ TRUCKER_CLASS ][ 2 ] = AddStaticVehicle( ... );

gClassVehicles[ FARMER_CLASS ][ 0 ] = AddStaticVehicle( ... );
gClassVehicles[ FARMER_CLASS ][ 1 ] = AddStaticVehicle( ... );
gClassVehicles[ FARMER_CLASS ][ 2 ] = AddStaticVehicle( ... );
On state change or OnPlayerEnterVehicle, simply check the vehicle ID (stored in gClassVehicles) and the player's class (gPlayerClass) - somethingl ike this:

pawn Код:
// Assuming you're using OnPlayerEnterVehicle:
for( new i = 0; i < sizeof( gClassVehicles[] ); i ++ )
{
    if( vehicleid == gClassVehicles[ FARMER_CLASS ][ i ] && gPlayerClass[ playerid ] != FARMER_CLASS )
    {
        // If the above is true, the player isn't a farmer, but *he is entering a farmer-only vehicle
        RemovePlayerFromVehicle( playerid );
    }
    else if( vehicleid == gClassVehicles[ TRUCKER_CLASS ][ i ] && gPlayerClass[ playerid ] != TRUCKER_CLASS )
    {
        // If the above is true, the player isn't a trucker, but *he is entering a trucker-only vehicle
        RemovePlayerFromVehicle( playerid );
    }
}
I hope this will help you!
Reply
#83

Quote:
Originally Posted by LarzI
Посмотреть сообщение
I'm not entirely sure if it works, but try this:

pawn Код:
CMD:color(playerid, params[])
{
    new
        iR,
        iG,
        iB
    ;
    if( sscanf( params, "iii", iR, iG, iB ))
        return SendClientMessage( playerid, 0xFFFF00AA, "[USAGE] {FFFFFF}/color [Red] [Blue] [Green] (Values 0 - 255)" );
    if(( 256 <= iR <= -1 ) || ( 256 <= iG <= -1 ) || ( 256 <= iB <= -1 ))
        return SendClientMessage( playerid, 0xFFFF00AA, "[USAGE] {FFFFFF}/color [Red] [Blue] [Green] (Values 0 - 255)" );

    iR &= (( 0xFF << 16 ) | (( iG & 0xFF ) << 8 ) | ( iB & 0xFF ));
    SetPlayerColor( playerid, iR );

    return true;
}
E:\games\server\color.pwn(1) : warning 203: symbol is never used: "color"
E:\games\server\color.pwn(1 -- 18 ) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


How to fix ?
Reply
#84

1. I need a WORKING FileScript, tazer with special SD Pistol, only for cops. /tazer to get that gun (will replace deagle) and /tazer again to put that tazer gun back and replace with deagle

2. I need a /skip command or something like that for players who know to play, to skip the begginer tutorial. I tried 3 scripts and none of them worked.

3. I have GF so i have pDonation, make donation ranks like:
rank1: /nos , /premier (will get a rent-like premier, for 10.000$ which can be locked . When player disconnects the car will disappear). /deagle (Gets a deagle with 50 bullets for 1.000$)
Rank2: Same as rank1 + /heli (same as premier but spawns a maverick for 10.000$), /tec (gets tec gun with 100 bullets for 5.000$) and /fix , like /repair but can fix own car and others without being a mechanic.
rank3: Same as rank2+rank1+ /huntley (spawns a huntley for 50.000$ like premier, lockable etc) , /guns (can choose deagle, m4, ak47, tec with 250 bullets for 5.000$ each) .

Could you do these PLEASE
Reply
#85

Hey guys, i have been posting this bunch of times now. I need a level system which changes the levels on specific connected time. Could anyone help me please. I will, in return, increment your reputation level by 1.

Your replies are worthy folks!
Reply
#86

I am looking for a fast minor-bug fixer (minor code problems)
Reply
#87

Hello, Im Pettersen.
I need a scripter, I can pay with Dota 2 and Red Orchestra 2: Heroes Of Stalingrad.
I give the games on Steam then.
Its need to be a good scripter.
THAT 2 GAMES IS WORTH : 45,98Ђ
Needs info? Read the line down here ↓

Send me a PM on Skype or here on the forum.

Contact me:
Skype: Ben.Roger.Komplettking
Other: PM me Here!

Whats is steam? Click Here!
Reply
#88

Quote:
Originally Posted by RealCop228
View Post
Are you doing something like this?

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(playerid != INVALID_PLAYER_ID && killerid != INVALID_PLAYER_ID)
    {
        SendDeathMessage(killerid, playerid, reason);
    }
    return 1;
}
Ah, Nevermind - I fixed it out
Thanks anyway
Reply
#89

Does someone can make a Fish script you need to be in water or fishing boat to fish you an only hold 50 baits you don't catch always fish and like You catch Trout 15lb And you can sell it somewhere is Las Venturas For like 20k Hope some one can make free if you intresset pm me
Reply
#90

My gamemode shows my Wanted Level in /stats, max is 10. I want to show as singleplayer wanted stars (like in RP), and max wanted level 6.
Reply
#91

I need a rob-able store, in ls, like idlewood pizza or the tattoo shop that only civilians can rob so I can understand how its done, thanks
Reply
#92

Hi guys!

Im administrating a CnR server, but im not good at scritps so im here to ask you something.
( I downlaoded a CnR gm here and modified as much as i can) All works fine and as i wish.

I just need a script where , if somebody have 0 wanted level , he can do "/race"
and enter in a world like "Underground stunting race minigame" or "Adrenaline Racing" .

And when he's boring just type "/cnr" to come back in CnR world.

Thanks , if you need more information just type , but i hope you understood me
Reply
#93

Yeah, can anyone add /stats command in GUI to this map? I really cant do it, i tried but i failed.
Reply
#94

Quote:
Originally Posted by NathNathii
View Post
I need a command to change another player's skin.

/setplayerskin [playerID] [skinID]

Thanks.
pawn Code:
CMD:setskin(playerid,params[])
{
    //if(PlayerInfo[playerid][admin] == 0)
        //return SendClientMessage(playerid,0xCCCCCCFF,"Admins only!");
    new id, skinid;
    if(sscanf(params,"ud",id,skinid))
        return SendClientMessage(playerid,0xCCCCCCFF,"Usage: /setskin [PLAYER][SKIN]");
    if(!IsPlayerConnected(id))
        return SendClientMessage(playerid,0xCCCCCCFF,"Invalid ID.");
    if(skinid > 299 || skinid < 0)
        return SendClientMessage(playerid,0xCCCCCCFF,"Skin must be between 0 and 299!");
    new a[24],b[24],c[50],d[50];
    GetPlayerName(id,a,24);
    GetPlayerName(playerid,b,24);
    format(c,sizeof c,"%s have setted your skin to: %d",b,skinid);
    format(d,sizeof d,"You've setted %s skin to: %d",a,skinid);
    SendClientMessage(id,0x44FF44FF,c);
    SendClientMessage(playerid,0x44FF44FF,d);
    SetPlayerSkin(id,skinid);
    return 1;
}
Reply
#95

Quote:
Originally Posted by arakuta
View Post
pawn Code:
CMD:setskin(playerid,params[])
{
    //if(PlayerInfo[playerid][admin] == 0)
        //return SendClientMessage(playerid,0xCCCCCCFF,"Admins only!");
    new id, skinid;
    if(sscanf(params,"ud",id,skinid))
        return SendClientMessage(playerid,0xCCCCCCFF,"Usage: /setskin [PLAYER][SKIN]");
    if(!IsPlayerConnected(id))
        return SendClientMessage(playerid,0xCCCCCCFF,"Invalid ID.");
    if(skinid > 299 || skinid < 0)
        return SendClientMessage(playerid,0xCCCCCCFF,"Skin must be between 0 and 299!");
    new a[24],b[24],c[50],d[50];
    GetPlayerName(id,a,24);
    GetPlayerName(playerid,b,24);
    format(c,sizeof c,"%s have setted your skin to: %d",b,skinid);
    format(d,sizeof d,"You've setted %s skin to: %d",a,skinid);
    SendClientMessage(id,0x44FF44FF,c);
    SendClientMessage(playerid,0x44FF44FF,d);
    SetPlayerSkin(id,skinid);
    return 1;
}
Thanks
Reply
#96

I would like a command that when I type /gotoloc a dialog would popup of all the available locations i could teleport to, some such as:
- Ganton Gym
- Church
- Dealership
- Car Upgrade
- Police Department
- Prison
- Area 51
- Unique Interiors (Big Smoke's Crack Den, Little Probe Inn, Mad Dogg's Mansion.. )
Reply
#97

Quote:
Originally Posted by Th3b3ast5
View Post
I would like a command that when I type /gotoloc a dialog would popup of all the available locations i could teleport to, some such as:
- Ganton Gym
- Church
- Dealership
- Car Upgrade
- Police Department
- Prison
- Area 51
- Unique Interiors (Big Smoke's Crack Den, Little Probe Inn, Mad Dogg's Mansion.. )
You can use the code I post above your post as a basis. It's the same idea, just turn the texts into SetPlayerPos and SetPlayerInterior(if necessary)
Reply
#98

Quote:
Originally Posted by arakuta
View Post
You can use the code I post above your post as a basis. It's the same idea, just turn the texts into SetPlayerPos and SetPlayerInterior(if necessary)
I don't know how to do that
Reply
#99

Compare the scripts, and you will see the difference:

pawn Code:
//First define the list dialog:

#define TELEPORT_LIST 2014

//Then creates de CMD

CMD:teleports(playerid)
{
    ShowPlayerDialog(playerid,TELEPORT_LIST,DIALOG_STYLE_LIST,"{FFDD00}Teleport List","Place 1\n Place 2\nPlace 3\nPlace 4","GO!","Stay Here"); // \n means new item.
    return 1;
}

// So let's process the dialog response

public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
{
    if(dialogid == TELEPORT_LIST)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:  // Place 1 (first item)
                {
                    SendClientMessage(playerid,0xFFFFFFFF,"Welcome to place 1!");
                    //SetPlayerInterior(playerid,id);
                    SetPlayerPos(playerid,x,y,z);
                }
                case 1:  // Place 2 (second item)
                {
                    SendClientMessage(playerid,0xFFFFFFFF,"Welcome to place 2!");
                    //SetPlayerInterior(playerid,id);
                    SetPlayerPos(playerid,x,y,z);
                }
                case 2:  // Place 3 (third item)
                {
                    SendClientMessage(playerid,0xFFFFFFFF,"Welcome to place 3!");
                    //SetPlayerInterior(playerid,id);
                    SetPlayerPos(playerid,x,y,z);
                }
                case 3:  // Place 4 (fourth item)
                {
                    SendClientMessage(playerid,0xFFFFFFFF,"Welcome to place 4!");
                    //SetPlayerInterior(playerid,id);
                    SetPlayerPos(playerid,x,y,z);
                }
            }
        }
    }
    return 1;
}
Reply

Does anybody know MYSQL? (or able to convert .ini files to SQL Data Tables)

Please could you drop me a PM?

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)