02.12.2015, 19:13
If you havnt already download Streamer
At the top of your script place
Now, using the map editor hit "Show Code" at the top.
Select CreateDynamicObject
Copy and paste that code in your script
You might want to use a timer so the player can see the laptop before his camera position gets changed here
And in the timer 'endar' delete the object you created using DestroyDynamicObject(laptop);
***This is all from the top of my head so may not even make sense
At the top of your script place
Код:
#include <streamer>
Select CreateDynamicObject
Copy and paste that code in your script
Код:
CMD:ar(playerid, params[]) { if(GetPVarInt(playerid,"AirReconOnline"))return SendClientMessage(playerid,COLOR_RED,"ERROR: You have already set the Air Recon Online!"); if(gTeam[playerid] != TEAM_Internationalforces) return SendClientMessage(playerid,COLOR_RED,"ERROR: Your team dosent have Satellite!"); if(gTeam[playerid] == TEAM_Internationalforces) { new laptop; if(GetPlayerMoney(playerid) < 90000) return SendClientMessage(playerid,0xFF0000FF,"You dont have money to use Satellite!"); SendClientMessage(playerid,COLOR_BLUE,"i need air recon online!"); SendClientMessage(playerid,COLOR_BLUE,"copy that we are coming to your position in 2 sec!"); SendClientMessage(playerid,COLOR_RED,"You lost $90000 for air recon."); TogglePlayerControllable(playerid, 0); new Float:v, Float:c, Float:r; GetPlayerPos(playerid, v, c, r); //laptop = createdynamicobject SetPlayerCameraPos(playerid, v, c, r+30); SetPlayerCameraLookAt(playerid, v, c, r); SetTimer("endar", 60000, false); GivePlayerMoney(playerid, -90000); SetPVarInt(playerid,"AirReconOnline",true); return SendClientMessage(playerid,COLOR_BLUE,"We are in your position you can use Satellite!"); } return 1; }
Код:
SetPlayerCameraPos(playerid, v, c, r+30); SetPlayerCameraLookAt(playerid, v, c, r);
***This is all from the top of my head so may not even make sense