• Welcome to Vice City Multiplayer.
 

Location code for pawn

Started by Falcon, January 12, 2010, 07:52:42 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Ettans

You don't have to, it's pointless.

BCKLUP

#16
Quote from: Ettans on February 07, 2010, 01:08:38 PM
You could also make the code a lot shorter and easier to modify, by using one single array for the location names and coordinates.


enum zMain
{
   name[64],
   Float:area[6]
};



static const zones[][zMain] =
{
   {"Starfish Island",{-410.00,1403.30,-3.00,-137.90,1681.20,200.00}},
   {"Ammunation-North-Point-Mall",{-1372.10,2498.50,0.00,-1277.50,2615.30,200.00}},
   {"VC International",{-2324.90,-2584.20,-6.10,-1964.20,-2212.10,200.00}}
};


Note: The coordinates used in this array are random.

You can do that but Then Newbies won't understand it easily
i'm quite new with these arrays you put, could anyone please tell me how to check if someone is inside the boundaries of these locs?

Charleyutton

Charleyutton, VU clan leader, VCDC co-creator, SvM Server Owner, Squirrel Scripter. http://vu.vrocker-hosting.co.uk http://svm.vrocker-hosting.co.uk XE Scripter


Aaron


BaSSMaN

The link isn't working, can you post a new one?

Robd

for getting location for a command to decide if a player is close enough to an object I just use GetPlayerDistance
Hello, this is Robd from the past.
If you are seeing this I have either posted something stupid, forgotten something, started a stupid topic, or a combination of the three.

Please forgive us for this mistake.

Regards, management

aXXo

I think the same location code is present in GUPS script.
You can extract it from GUPS.

Oh btw, i see some year old posts on previous page.
You have to set grav and speed onPlayerConnect because theres a bug in VCMP, that resets normal grav/speed whenever a new player joins the server.

Robd

If it resets itself then why would you need to reset it yourself?
Hello, this is Robd from the past.
If you are seeing this I have either posted something stupid, forgotten something, started a stupid topic, or a combination of the three.

Please forgive us for this mistake.

Regards, management

yazeen

please Re-upload linnk its not working  :(:(

tato






<!-- Facebook Badge START --><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" title="Eduardo Estrada">Eduardo Estrada</a><br/><a href="http://es-es.facebook.com/eduardoeslindo" target="_TOP" title="Eduardo Estrada"><img src="http://badge.facebook.com/badge/697470158.6069.1979465113.png" width="120" height="272" style="b