[HELP] GameTextForPlayer
#1

Hello.
This time I want a GameTextForPlayer text to show up at OnPlayerConnect, just before the skin selection.
I have added the line to OnPlayerConnect but, when I try, the text dissapears to fast and the skin selection pops up...

I want the text to be there atleast 5 seconds, then it should go to the skin selection.

Thanks
Reply
#2

GameTextForPlayer(playerid, const string[], time, style);
1 second = 1000 miliseconds, so put 5000 for 5 seconds.
Reply
#3

Quote:
Originally Posted by Don Correlli
GameTextForPlayer(playerid, const string[], time, style);
1 second = 1000 miliseconds, so put 5000 for 5 seconds.
The text just stays in 2 seconds then it dissaperas and sends me to skin selection...

This is my line:

Код:
public OnPlayerConnect(playerid)
{
  GameTextForPlayer(playerid,"The Streets of San Fierro",5000,3);
  return 1;
}
Reply
#4

do you have a GameText at onplayerrequestclass?
Reply
#5

Quote:
Originally Posted by xoɟɔıʇɔɹɐ
do you have a GameText at onplayerrequestclass?
Yes, I have it like this...

Код:
public OnPlayerRequestClass(playerid, classid)
{
 Switch(classid)
 {
  case 0:
  {
   GameTextForPlayer(playerid,"San Fierro Rifa",3000,6);
   {
    SetPlayerPos(playerid,-2261.1143,1012.0626,83.6106);
    SetPlayerCameraPos(playerid,-2261.1143,1016.7200,83.6334);
    SetPlayerCameraLookAt(playerid,-2261.1143,1012.0626,83.6106);
    SetPlayerFacingAngle(playerid,357.6576);
    SetPlayerColor(playerid,0x0080C0FF);
   }
  }
 }
 return 1;
}
Reply
#6

that gametext removes the old one thats the reason
Reply
#7

Quote:
Originally Posted by xoɟɔıʇɔɹɐ
that gametext removes the old one thats the reason
Hmm... ok, anythng I can do to fix it?
Reply
#8

Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by xoɟɔıʇɔɹɐ
that gametext removes the old one thats the reason
Hmm... ok, anythng I can do to fix it?
nope you can only show one gametext at a time
Reply
#9

Quote:
Originally Posted by xoɟɔıʇɔɹɐ
Quote:
Originally Posted by FreddeN
Quote:
Originally Posted by xoɟɔıʇɔɹɐ
that gametext removes the old one thats the reason
Hmm... ok, anythng I can do to fix it?
nope you can only show one gametext at a time
I've seen many servers on SA-MP that have GameText at the begining and skin selection...
Reply
#10

Probably a GameText and a TextDraw.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)