Text draws !
#1

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
Reply
#2

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(...);
}
Reply
#3

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.
Reply
#4

Thanks
Reply
#5

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
Reply
#6

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
Reply
#7

pawn Код:
GameTextFroPlayer(...);
Should be


pawn Код:
GameTextForPlayer(...);
Reply
#8

Quote:
Originally Posted by ikarus❶❸❸❼
pawn Код:
GameTextFroPlayer(...);
Should be


pawn Код:
GameTextForPlayer(...);
I know
Reply
#9

Then show your full code, not (...) You could made a mistake in it.
Reply
#10

Quote:
Originally Posted by BigM
Game Text doesnt show
Show your OnPlayerRequestClass part.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)