SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Thread Tools Display Modes
Old 17/05/2017, 06:34 PM   #1
Little Clucker
Join Date: Jan 2017
Location: In your heart <3
Posts: 27
Reputation: 9
Post /deliver command needed

i am doing pretty good with with my server and i need some one to script for my server as i don't get much time.I also want /deliver command for LAFMD like they can /deliver patient at a pickupspot and some of the money of patient get deducted and delivered to a specific point in hospital
dUPRE is offline   Reply With Quote
Old 17/05/2017, 07:49 PM   #2
Big Clucker
Join Date: Feb 2017
Location: Stuck in the middle of nowhere.
Posts: 80
Reputation: 0
Default Re: /deliver command needed

You might make command with npcs or real players.
Here is an example:
YCMD:deliver( playerid, params[], help ) {
    #pragma unused help
    if( PlayerIsLAFMD[ playerid ] != 1 ) return SCM ( playerid, -1, "YOU AREN'T AUTHORISED (LAFMD)!" );
    if( PickedPatient[ playerid ] != 1 ) return SCM ( playerid, -1, "YOU HADN'T PICKED THE PATIENT UP.");
    if ( !IsPlayerInRangeOfPoint radius, x, y, z ) return 0;
    SCM ( playerid, -1, "You have successfuly left the patient at the hospital.");
    PickedPatient[ playerid ] == 0; BeingPicked[ pickedid ] == 0;
    SCM ( pickedid, -1,  "You have been successfuly left by the LAFMD employee. ");
    SetPlayerPos ( pickedid, x, y, z );
    SetPlayerHealth ( pickedid, 99 );
    return 1; 
You need to define the id of player being picked ( pickedid here). Also some player variables should be easily determined using 'new' at top of your script...
You might consider using timers and looping animation for pickedid player. Sorry if tab size is messed up i wrote this from my phone.
ElMaestro123 is offline   Reply With Quote

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
RP Deliver patiant eclipses Scripting Help 2 31/10/2015 06:17 PM
Deliver Command problem yaron0600 Scripting Help 0 08/04/2013 01:25 PM
Deliver Command yaron0600 Scripting Help 1 06/04/2013 02:05 PM
Deliver Problem please help William1122 Scripting Help 4 25/01/2013 12:58 PM

All times are GMT. The time now is 10:18 AM.

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