19.02.2012, 23:09
Hi guys,
I found something weird with my GameTextForPlayer, because whatever I put in 'time', the GameText will appear for 6 seconds. I even set it to 100, but it still lasted 6 seconds.
Here is the code of the callback (which should normally work, unless I did a mistake):
Any idea?
I found something weird with my GameTextForPlayer, because whatever I put in 'time', the GameText will appear for 6 seconds. I even set it to 100, but it still lasted 6 seconds.
Here is the code of the callback (which should normally work, unless I did a mistake):
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2080.4087,1919.1265,12.2571);
SetPlayerFacingAngle(playerid, 264.0238);
SetPlayerCameraPos(playerid, 2097.9773,1916.9988,14.8775);
SetPlayerCameraLookAt(playerid, 2080.4087,1919.1265,12.2571);
switch(classid)
{
case 0:
{
GameTextForPlayer(playerid, "~r~GANG", 100, 0);
gTeam[playerid] = TEAM_GANG;
}
case 1:
{
GameTextForPlayer(playerid, "~b~POLICE", 100, 0);
gTeam[playerid] = TEAM_POLICE;
}
}
return 1;
}