SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 15/02/2009, 12:28 AM   #1
KnooL
Huge Clucker
 
Join Date: Jan 2009
Posts: 411
Reputation: 3
Default Making objects, deleting created objects

for; IsACop
example cmd; /makeramp : It blocks way so no one passes trough handy for cops to block roads
example cmd: /rmramps : Removes all created ramps.

I need help with these two cmd's.
Push on the button, creating ramps
Push on the button, deleting created ramps.

Who can give me an example?

Thanks!

__________________
217.18.70.94:7777
http://mafiacityrpg.com
Quote:
Originally Posted by bajskorv123 View Post
Will returning 0 at OnPlayerDisconnect work?
Just a quick question because im too lazy to test.
Would be nice if you could keep players on server xD
KnooL is offline  
Old 15/02/2009, 08:34 AM   #2
SpiderPork
Gangsta
 
Join Date: Feb 2009
Posts: 624
Reputation: 1
Default Re: Making objects, deleting created objects

new Ramp;
OnPlayerKeyStateChange

Ramp = CreateObject(..., ..., ..., ..., ..., ..., ...);
DestroyObject(Ramp);

_________________________________________________

Use these functions.
SpiderPork is offline  
 

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
Crash because of created objects. diamondo25 Client Support 10 06/04/2010 01:43 PM
[Help] Created objects (correct ID's!) are crashing the client(s) diamondo25 Help Archive 2 05/04/2010 07:56 PM
[HELP] My Object Streamer is deleting other objects to add New ones!!---CLOSED-- Epic Shower Help Archive 13 22/03/2010 06:19 PM
MOVED: Deleting Objects dugi Help Archive 0 20/10/2009 11:35 AM
Deleting Objects Jbosh123 Help Archive 2 20/10/2009 11:31 AM


All times are GMT. The time now is 03:03 PM.


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