02.01.2011, 09:56
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new Float:cam1x;
new Float:cam1y;
new Float:cam1z;
if (strcmp("/cam1", cmdtext, true, 10) == 0)
{
GetPlayerPos(playerid, cam1x, cam1y, cam1z);
SetPlayerCameraPos(playerid, -2027.0925292969, -191.03739929199, 47.638492584229);
SetPlayerCameraLookAt(playerid, cam1x, cam1y, cam1z);
return 1;
}
return 0;
}
https://sampwiki.blast.hk/wiki/OnPlayerCommandText
https://sampwiki.blast.hk/wiki/OnPlayerUpdate