- 0
Problema /flly
-
Similar Content
-
- 1 reply
- 98 views
-
- 2 answers
- 918 views
-
Problema turf
By Soryn.,
- 3 answers
- 474 views
-
- 0 replies
- 196 views
-
- 2 replies
- 395 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
InceMan
Problema intalnita (descriere): nu merge sa zbor cu fly ce trebuie sa fac sa pot zbura cu ea in ceruri
Ero(area / rile) / warning-(ul / urile):nu sunt
Liniile de cod / sursa / script-ul(obligatoriu):
if (strcmp(cmd, "/fly", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerData[playerid][pAdmin] >= 2)
{
new Float:px, Float:py, Float:pz, Float:pa;
GetPlayerFacingAngle(playerid,pa);
if(pa >= 0.0 && pa <= 22.5) //n1
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px, py+30, pz+5);
}
if(pa >= 332.5 && pa < 0.0) //n2
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px, py+30, pz+5);
}
if(pa >= 22.5 && pa <= 67.5) //nw
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px-15, py+15, pz+5);
}
if(pa >= 67.5 && pa <= 112.5) //w
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px-30, py, pz+5);
}
if(pa >= 112.5 && pa <= 157.5) //sw
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px-15, py-15, pz+5);
}
if(pa >= 157.5 && pa <= 202.5) //s
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px, py-30, pz+5);
}
if(pa >= 202.5 && pa <= 247.5)//se
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px+15, py-15, pz+5);
}
if(pa >= 247.5 && pa <= 292.5)//e
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px+30, py, pz+5);
}
if(pa >= 292.5 && pa <= 332.5)//e
{
GetPlayerPos(playerid, px, py, pz);
SetPlayerPosEx(playerid, px+15, py+15, pz+5);
}
}
else
{
SendError(playerid,cmd);
}
}
return 1;
}
Imagini / Video (optional): nu am am-i facut
Ati incercat sa rezolvati singur?: da
FiveGame Lands
Pawno Developer, Mapping , Scripter
Since 2016
Link to comment
Share on other sites
5 answers to this question
Recommended Posts