30.08.2014, 13:51
pawn Код:
new Float: skinX = 0.0;
new Float: skinY = 0.0;
new Float: skinZ = 0.0;
new Float: skinA = 0.0;
new Float: camX = 0.0;
new Float: camY = 0.0;
new Float: camZ = 0.0;
public OnPlayerRequestClass(playerid,classid)
{
SetPlayerPos(playerid, skinX, skinY, skinZ);
SetPlayerFacingAngle(playerid, skinA);
SetPlayerCameraPos(playerid, camX, camY, camZ);
SetPlayerCameraLookAt(playerid, skinX, skinY, skinZ);
return 1;
}
CMD:setallskin(playerid, params[])
{
GetPlayerPos(playerid, skinX, skinY, skinZ);
GetPlayerFacingAngle(playerid, skinA);
SendClientMessage(playerid, -1, "Updated skin selection pos.");
return 1;
}
CMD:setallskincamera(playerid, params[])
{
GetPlayerPos(playerid, camX, camY, camZ);
SendClientMessage(playerid, -1, "Updated skin selection cam pos.");
return 1;
}