SA-MP Forums Archive
question close - 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: question close (/showthread.php?tid=162982)



question close - admine - 25.07.2010

question close


Re: question close - Shadow™ - 25.07.2010

You're adding another section to the function.

SetPlayerPos has four things, the playerid, X, Y & Z... You're adding the Rotation too, simple remove the last few numbers after the last , comma.

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
if(classid == 0)
{
GameTextForPlayer(playerid,"EUROPA",3000,3);
SetPlayerPos(playerid, 210.6708,1822.9215,7.4063); 252
SetPlayerCameraPos(playerid, 210.6708,1822.9215,7.4063); 253
SetPlayerCameraLookAt(playerid, 210.6708,1822.9215,7.4063); 254
}
if(classid == 1)
{
GameTextForPlayer(playerid,"VS",3000,3);
SetPlayerPos(playerid, 210.6708,1822.9215,7.4063); 259
SetPlayerCameraPos(playerid, 210.6708,1822.9215,7.4063); 260
SetPlayerCameraLookAt(playerid, 210.6708,1822.9215,7.4063); 261
return 1;
}
return 1;
}