06.11.2009, 07:58
guys how i can get coords of all 6 jails cells in LV PD anyone can help please ?
Originally Posted by Finn
When you're in-game, type /save [comment] and then check your savedpositions.txt file from your GTA folder. The coords are there.
|
#include <zcmd>
cmd(forward, playerid, params[] )
{
if ( isnull( params ) ) return SendClientMessage( playerid, 0xafafafff, "Usage: /forward [units]" );
new
Float:x,
Float:y,
Float:z,
Float:angle;
GetPlayerPos( playerid, x, y, z );
GetPlayerFacingAngle( playerid, angle );
x = x + strval( params ) * floatsin( -angle, anglemode:degrees );
y = y + strval( params ) * floatcos( -angle, anglemode:degrees );
SetPlayerPosFindZ( playerid, x, y, z );
return 1;
}
#include <zcmd>
cmd(forward, playerid, params[])
{
if (isnull(params)) return SendClientMessage(playerid, 0xafafafff, "Usage: /forward [units]"); //okay, i am going to let this slide
new
Float:x,
Float:y,
Float:z,
Float:angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, angle);
x = x + strval(params) * floatsin( -angle, degrees ); //you don't pass floats by doing Float:angle, so no need to put it before the degrees
y = y + strval(params) * floatcos(-angle, degrees); //y is sin x is cos, cause if angle is 90.0 then the cos of that is 0.0 wich means if angle is south, x does not need to changed
SetPlayerPosFindZ(playerid, x, y, z); //kudo's for using findz to make sure they don't fall through the ground.
return 1;
}
Originally Posted by Lajko1
i need to get zcmd include , when i try to compile it say 1 eror cant read for zcmd... etc etc so where i can get include
|
Originally Posted by Daren_Jacobson
did you test that? cause my logic is screaming no at me.
this is what i would do to your code |