Text draws ! - 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: Text draws ! (
/showthread.php?tid=145841)
Text draws ! - BigM - 04.05.2010
Can someone help me with creating text draws or game text
in player class.
Example: I am creating Mafia War script so when i want to choose Rusian Mafia
ped, under his head is saying rusian mafia and when i go to next ped which
is in Italy Mafia that says Italy Mafia
-BigM
Re: Text draws ! -
Think - 04.05.2010
Just do something like this, if you dont know parameters of GameTextForPlayer check the wiki.
@onplayerrequestclass (i hope its correct

)
pawn Код:
if(classid >= 0 && classid < 11) // Fill in your own classids; italy maffia
{
GameTextForPlayer(...);
}
else if(classid > 11 && classid < 20) // Again fill in your own ids; russian maffia
{
GameTextFroPlayer(...);
}
Re: Text draws ! -
playbox12 - 04.05.2010
Quote:
Originally Posted by Pandabeer1337
Just do something like this, if you dont know parameters of GameTextForPlayer check the wiki.
@onplayerrequestclass (i hope its correct  )
pawn Код:
if(classid >= 0 && classid < 11) // Fill in your own classids; italy maffia { GameTextForPlayer(...); } else if(classid > 11 && classid < 20) // Again fill in your own ids; russian maffia { GameTextForPlayer(...); }
|
You typed fro instead of for so, to make sure he doesen't post a comment with it doesent work I changed it.
Re: Text draws ! - BigM - 04.05.2010
Thanks
Re: Text draws ! - BigM - 04.05.2010
Quote:
Originally Posted by playbox12
Quote:
Originally Posted by Pandabeer1337
Just do something like this, if you dont know parameters of GameTextForPlayer check the wiki.
@onplayerrequestclass (i hope its correct  )
pawn Код:
if(classid >= 0 && classid < 11) // Fill in your own classids; italy maffia { GameTextForPlayer(...); } else if(classid > 11 && classid < 20) // Again fill in your own ids; russian maffia { GameTextForPlayer(...); }
|
You typed fro instead of for so, to make sure he doesen't post a comment with it doesent work I changed it.
|
Thanks for fixing the mistake
Re: Text draws ! - BigM - 04.05.2010
Quote:
Originally Posted by Pandabeer1337
Just do something like this, if you dont know parameters of GameTextForPlayer check the wiki.
@onplayerrequestclass (i hope its correct  )
pawn Код:
if(classid >= 0 && classid < 11) // Fill in your own classids; italy maffia { GameTextForPlayer(...); } else if(classid > 11 && classid < 20) // Again fill in your own ids; russian maffia { GameTextFroPlayer(...); }
|
Game Text doesnt show
Re: Text draws ! -
[MWR]Blood - 04.05.2010
Should be
Re: Text draws ! - BigM - 04.05.2010
Quote:
Originally Posted by ikarus❶❸❸❼
|
I know
Re: Text draws ! -
[MWR]Blood - 04.05.2010
Then show your full code, not (...) You could made a mistake in it.
Re: Text draws ! -
Adil - 04.05.2010
Quote:
Originally Posted by BigM
Game Text doesnt show 
|
Show your OnPlayerRequestClass part.