SA-MP Forums Archive
Way please - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Way please (/showthread.php?tid=534577)



Way please - DhO0m - 30.08.2014

Is the any way to make a skin selection system
i mean when i type /setallskin it will auto set all skins there
and when i type /setallskincamera it will choose there as the camere.
it would be easy for making new skin systems .


Re: Way please - [XST]O_x - 30.08.2014

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;
}