Screens when class selection - 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: Screens when class selection (
/showthread.php?tid=200242)
Screens when class selection -
Face9000 - 17.12.2010
Hi,in my gm i need to do a thing:
I've coordinated in AddPlayerClass,i need to show,when i choose class,the coordinates for every class.
I mean:
The swat spawns in swat base,so in the class selection i need to show the swat and etc..
How to?
Re: Screens when class selection -
WillyP - 17.12.2010
What..?
Re: Screens when class selection -
Face9000 - 17.12.2010
Lol,ok,i will re-describe better.
I've the coordinates in AddPlayerClass,this coordinates are for spawn in swat base.
In the class selection,i need to show the background,the swat base for swat team...
Understand?
I know,it's pretty hard to explain..
Re: Screens when class selection -
Retardedwolf - 17.12.2010
oPRC
switch ( classid )
case SWAT_CLASS_ID:
sPCP
sPCLA
Re: Screens when class selection -
Face9000 - 17.12.2010
Retardedwolf can you explain more please?
Re: Screens when class selection -
matute - 17.12.2010
Quote:
Originally Posted by Logitech90
Retardedwolf can you explain more please?
|
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
gClass[playerid] = classid;
switch (classid) {
case 0:
{
GameTextForPlayer(playerid, "~b~Police", 1000, 3);
SetPlayerPos(playerid, x,y,z);
SetPlayerCameraPos(playerid,x, y, z);
SetPlayerCameraLookAt(playerid, x, y, z);
}
case 1:
{
GameTextForPlayer(playerid, "~w~Civilian", 1000, 3);
SetPlayerPos(playerid, x,y,z);
SetPlayerCameraPos(playerid,x, y, z);
SetPlayerCameraLookAt(playerid, x, y, z);
}
}
return 1;
}
Change X, Y and Z for your coords, when done tell me if it worked
Re: Screens when class selection -
Face9000 - 17.12.2010
Yes,it's working.
Thanks.
Re: Screens when class selection -
matute - 17.12.2010
Quote:
Originally Posted by Logitech90
Yes,it's working.
Thanks.
|
No problem