SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Nederlands/Dutch

Reply
 
Thread Tools Display Modes
Old 22/02/2012, 04:03 PM   #1
hatchoe101
Big Clucker
 
hatchoe101's Avatar
 
Join Date: Jan 2012
Location: Zeeland, Nederland
Posts: 117
Reputation: -2
Flowers Hulp nodig

Ik was bezig met een FS en heb hulp nodig.
Ik wil weten hoe de coordinaat heet waarbij het geen dat ik wil spawnen een meter of 2 ofzo voor de speler komt.
ik was zo bezig:
Code:
AddStaticVehicle(Coordinaat nodig);
Iedereen bedankt ben eruit
__________________

\

Last edited by hatchoe101; 22/02/2012 at 05:26 PM.
hatchoe101 is offline   Reply With Quote
Old 22/02/2012, 04:22 PM   #2
mamorunl
High-roller
 
mamorunl's Avatar
 
Join Date: Feb 2007
Location: Emmen/Netherlands
Posts: 3,989
Reputation: 1633
Default Re: Hulp nodig

Ten eerste: Dit moet je doen met CreateVehicle, wil je dat bewerkstelligen.

Nu wat je graag wilt: er was in 0.2 een functie die heet "getXYInFrontOfPlayer". Volgens mij was er ook zo'n functie voor 0.3, ik weet echter niet de naam. Kijk even op de wiki
__________________
mamorunl is offline   Reply With Quote
Old 22/02/2012, 04:42 PM   #3
Vince
Godfather
 
Vince's Avatar
 
Join Date: Sep 2007
Location: Belgium
Posts: 6,599
Reputation: 1719
Default Re: Hulp nodig

pawn Code:
stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{
    // Created by Y_Less

    new Float:a;

    GetPlayerPos(playerid, x, y, a);
    GetPlayerFacingAngle(playerid, a);

    if (GetPlayerVehicleID(playerid)) {
        GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
    }

    x += (distance * floatsin(-a, degrees));
    y += (distance * floatcos(-a, degrees));
}
__________________

Vince is offline   Reply With Quote
Reply

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
Hulp nodig :D fazer112 Nederlands/Dutch 3 28/02/2011 04:28 PM
[NL] Hulp nodig :o bartje01 Help Archive 3 20/04/2009 07:04 PM


All times are GMT. The time now is 02:08 PM.


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