01.10.2011, 20:36
pawn Код:
if(mapstarted[playerid] == 1)
{
new o;
GetPlayerKeys(playerid,o,ud,lr);
if(ud > 0)
{
mapY[playerid] = mapY[playerid] - 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
}
else if(ud < 0)
{
mapY[playerid] = mapY[playerid] + 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
return 1;
}
if(lr > 0)
{
mapX[playerid] = mapX[playerid] + 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
}
else if(lr < 0)
{
mapX[playerid] = mapX[playerid] - 10.0000;
SetPlayerCameraPos(playerid, mapX[playerid], mapY[playerid], mapZ[playerid]);
SetPlayerCameraLookAt(playerid, mapX[playerid], mapY[playerid], 15.3746);
SetPlayerPos(playerid,mapX[playerid], mapY[playerid], mapZ[playerid] + 10.0000);
return 1;
}
}