SA-MP Forums Archive
Kinda nooby question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Kinda nooby question (/showthread.php?tid=210942)



Kinda nooby question - gooble 402 - 14.01.2011

Sorry if it's already been answered, i've searches using the search funtion and found nothing.

I'm new to scripting, and have been messing around making a TDM server. I'm only as far as the class selection.
I have been able to make it so I can see my player and in the right spot, but when i get to the people of a different gang the screen is in the same place.

I want it to be able to choose particular skins in one place, and other ones in other places. I can't really explain it well but I hope someone gets what I mean


Re: Kinda nooby question - Infamous - 14.01.2011

So you want some skins to appear in san fierro on the selection screen and others to appear in las venturas for example?


Re: Kinda nooby question - gooble 402 - 14.01.2011

Yeah, thats the main idea.


Re: Kinda nooby question - Infamous - 14.01.2011

Set the camera and positions OnPlayerRequestClass. Something like this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0) {
        GameTextForPlayer(playerid, "TEAM 1", 1000, 5);
        SetPlayerPos(playerid, x, y, z);
        SetPlayerFacingAngle(playerid, a);
        SetPlayerCameraPos(playerid, x, y, z);
        SetPlayerCameraLookAt(playerid, x, y, z);
    } else if(classid == 1) {
        GameTextForPlayer(playerid, "TEAM 2", 1000, 5);
        SetPlayerPos(playerid, x, y, z);
        SetPlayerFacingAngle(playerid, a);
        SetPlayerCameraPos(playerid, x, y, z);
        SetPlayerCameraLookAt(playerid, x, y, z);
    }
    return 1;
}



Re: Kinda nooby question - gooble 402 - 14.01.2011

Thank you heaps

You can archive it or whatever you do with solved questions etc.