SA-MP Forums

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

Thread Tools Display Modes
Old 24/12/2012, 10:26 AM   #1
Huge Clucker
NicholasA's Avatar
Join Date: Nov 2012
Location: Athene
Posts: 398
Reputation: 9
Default Dont leave vehicle

Hey guys i got this command that lets you deliver stuff to a cp but on your way when you leave your vehicle the cp will get removed, how do i do this?
pawn Code:
COMMAND:startmech(playerid, params[]) // work at mechanic and receive $180
  if(!IsPlayerInRangeOfPoint(playerid, 30.0,2451.0056,-2118.1301,13.5469))return SendClientMessage(playerid, 0xE0313AFF, "(( [Mechanic]You are not at the mechanic HQ! ))");
  if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 525) return SendClientMessage(playerid, 0xE0313AFF, "(( [Mechanic] You are not in a mechanics vehicle! ))");
  SendClientMessage(playerid, 0x3524C9FF, "(( [Mechanic] Deliver the tires to the checkpoint and receive your paycheck! ))");
  SetPlayerCheckpoint(playerid, 848.1696,-1445.7803,13.5762, 5.0);
  return 1;
CoMiC SaNs
NicholasA is offline   Reply With Quote
Old 24/12/2012, 10:59 AM   #2
=WoR=Varth's Avatar
Join Date: Apr 2011
Location: Indonesia
Posts: 1,988
Reputation: 133
Default Re: Dont leave vehicle
=WoR=Varth is offline   Reply With Quote
Old 24/12/2012, 11:08 AM   #3
DaRk_RaiN's Avatar
Join Date: Sep 2012
Posts: 973
Reputation: 207
Default Re: Dont leave vehicle

DaRk_RaiN 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
[HELP]If player leave/destroyed defined vehicle, timer will be killed RadekB0Y Scripting Help 2 23/06/2012 08:56 AM
State Change and Leave Vehicle lordturhan Scripting Help 3 13/06/2012 04:13 PM

All times are GMT. The time now is 06:19 AM.

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