SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Closed Thread
 
Thread Tools Display Modes
Old 26/02/2011, 12:25 PM   #501
Nero_3D
High-roller
 
Nero_3D's Avatar
 
Join Date: Jun 2007
Location: Germany
Posts: 2,849
Reputation: 675
Default AW: Re: AW: Script Request Thread #5

Quote:
Originally Posted by Mean View Post
I don't think that SetPlayerPos can return anything. I don't think it'll work. Shoudn't it be GetPlayerPos?
Since sa-mp 0.2 each player based function got an IsPlayerConnect check inside
Yeah good old times with unsecure functions

So each player based function returns 1 for connected and 0 for not connected
SetPlayerPos because I use there giveplayerid and in GetPlayerPos playerid
Which we know of that he is connected because he passed IsPlayerAdmin(playerid)
Nero_3D is offline  
Old 26/02/2011, 03:44 PM   #502
cloudysky
Huge Clucker
 
Join Date: Jul 2010
Posts: 330
Reputation: 17
Default Re: Script Request Thread #5

Right ok this has really been bugging me.

As i am no scripting expert i tried scripting a job using basic checkpoints, but that's the problem there too basic...

I have tried using filterscripts but for some reason they change my objects to really faded, which i can't get my head around...

SO i am requesting that someone could make a move advanced trucking job. So you have to pick up your trailer and then make a delivery. But if you exit the vehicle or the trailer comes off you have a minute to re hook it and continue.

This sounds a lot but i need some jobs in my server and have tried nearly everything

Thanks in advance
cloudysky is offline  
Old 26/02/2011, 04:16 PM   #503
Unknown123
Guest
 
Posts: n/a
Default Re: Script Request Thread #5

Vehicle Owner Thing In MySQL...

Code:
Commands:
/sellcar - Sells the vehicle you bought (Sells the vehicle for 75% of what you bought it for)
/loccar - Locate Your Bought Vehicle
/givekeys - You can give your keys to a friend or something (Sell the vehicle private)
/deletebv - Delete Bought Vehicles... Delete all bout vehicles (Admin command)

Information:
When you enter a CheckPoint then a dialog Shows up.. in the dialog is it listed different cars
Then you select a car then you press at that "Buy" botton then the vehicle get registred to your name

More Information:
Save Info:

Vehicle Owner Name
Vehicle Color/PaintJob //If you have to
X
Y
Z
ZAngle
//Anything else? let me know
 
Old 26/02/2011, 06:02 PM   #504
Rock18
Big Clucker
 
Join Date: Nov 2010
Location: fuck off.
Posts: 169
Reputation: 0
Default Re: Script Request Thread #5

Coins system with the following commands :

/givecoins - Give player coins (Admin only)
/getcoins - Get Player coins (Admin only)
/coins - My coins
/coins <playerid> - See other player coins .

And automaticaly save coins when player disconnect .
Rock18 is offline  
Old 26/02/2011, 10:06 PM   #505
Kyro
Big Clucker
 
Join Date: Feb 2011
Posts: 58
Reputation: 0
Default Re: Script Request Thread #5

i can make a payday system but i dont know how to make it work on the start of the hour i know how to script what will happen in the when the payday happens

please help me i wanna know how to make a function happen when the start of an hour comes like

1:00 at the start of 1 o'clock exactly the function happens

and happens again at 2:00 and 3:00 and 16:00 etc....

if u dont get it tell me how to make a function happens at a certain time (related to the server time like the command /time)

please help me just tell me how please
Kyro is offline  
Old 26/02/2011, 10:57 PM   #506
cloudysky
Huge Clucker
 
Join Date: Jul 2010
Posts: 330
Reputation: 17
Default Re: Script Request Thread #5

All i need is a thirty second timer so when the trailer comes off my truck it starts to count down and when the time is up it gets rid of the checkpoint.

Please help as i am so close from scripting my first job
cloudysky is offline  
Old 27/02/2011, 08:53 AM   #507
Immortal_LTU
Big Clucker
 
Join Date: Feb 2011
Location: Lithuania
Posts: 120
Reputation: 1
Default Re: Script Request Thread #5

Can any give me command /skin 1-299
Immortal_LTU is offline  
Old 27/02/2011, 09:02 AM   #508
Calgon
Banned
 
Join Date: Jan 2009
Posts: 6,130
Reputation: 1127
Default Re: Script Request Thread #5

Quote:
Originally Posted by Immortal_LTU View Post
Can any give me command /skin 1-299
With zcmd:

pawn Code:
stock IsValidSkin(skinid) {
    // Credits to whoever made this function
    if (skinid < 0 || skinid > 299)
        return 0;

    switch (skinid)
    {
        case
        0, 105, 106, 107, 102, 103, 69, 123,
        104, 114, 115, 116, 174, 175, 100, 247, 173,
        248, 117, 118, 147, 163, 21, 24, 143, 71,
        156, 176, 177, 108, 109, 110, 165, 166,
        265, 266, 267, 269, 270, 271, 274, 276,
        277, 278, 279, 280, 281, 282, 283, 284,
        285, 286, 287, 288, 294, 296, 297: return 0;
    }

    return 1;
}

CMD:skin(playerid, params[]) {
    if(isnull(params)) {
        return SendClientMessage(playerid, 0, "Syntax: /skin [skinid (0-299)]");
    }
    else {
        new
            szMsgString[30],
            iSkinID = strval(params);

        if(!IsValidSkin(iSkinID)) return SendClientMessage(playerid, 0, "Invalid Skin ID specified.");

        SetPlayerSkin(playerid, iSkinID);
       
        format(szMsgString, sizeof(szMsgString), "Your skin has been set to %i.", iSkinID);
        SendClientMessage(playerid, 0, szMsgString);
    }
    return 1;
}
Calgon is offline  
Old 27/02/2011, 09:51 AM   #509
MrND
Big Clucker
 
MrND's Avatar
 
Join Date: Jul 2010
Location: Unknown location
Posts: 162
Reputation: 0
Default Re: Script Request Thread #5

How can I make enter for houses/bizzes with F(ENTER_VEHICLE) key instead of typing /enter.
MrND is offline  
Old 27/02/2011, 10:51 AM   #510
Kyro
Big Clucker
 
Join Date: Feb 2011
Posts: 58
Reputation: 0
Default Re: Script Request Thread #5

i can make a payday system but i dont know how to make it work on the start of the hour i know how to script what will happen in the when the payday happens

please help me i wanna know how to make a function happen when the start of an hour comes like

1:00 at the start of 1 o'clock exactly the function happens

and happens again at 2:00 and 3:00 and 16:00 etc....

if u dont get it tell me how to make a function happens at a certain time (related to the server time like the command /time)

please help me just tell me how please
Kyro is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Script Request Thread #3 clean180ollie Help Archive 836 05/01/2010 04:08 PM
Script Request Thread #2 Dol Help Archive 807 28/07/2009 09:09 AM
Script Request Thread kaisersouse Help Archive 1112 20/03/2009 11:15 AM


All times are GMT. The time now is 12:00 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.