03.08.2013, 15:38
pawn Код:
stock CameraPrimeira(playerid,type)
{
if(type == 0)
{
SetCameraBehindPlayer(playerid);
DestroyObject(firstperson[playerid]);
}
else if(type == 1)
{
CancelSelectTextDraw(playerid);
firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.27, 0.7, 0.0, 0.0, 0.0);
AttachCameraToObject(playerid, firstperson[playerid]);
}
return type;
}