TextDraws on AddPlayerClass
#1

Hello, How can I do a textdraw on AddPlayerClass?
Reply
#2

Create the Textdraw under OnPlayerConnect.
Reply
#3

Yeah, but I need something like that:
Код:
	for(new i = 0; i < sizeof(grove); i ++) //grove
	if(classid == i) //grove
	{
 		TextDrawShowForPlayer(playerid,grovestreet1);
 		ApplyAnimation(playerid,"GANGS","DEALER_IDLE",4.0,0,0,0,1,1);
	}
P.S This code is not working.
Reply
#4

ofcourse NOT
in OnPlayerRequestClass
switch classids and use case
then do something like this

PHP код:
switch(classid)
{
     case 
0:  /// it means the first class
     
{
                
TextDrawShowForPlayer(playerid,grovestreet1);
         
ApplyAnimation(playerid,"GANGS","DEALER_IDLE",4.0,0,0,0,1,1);
     }
.
.
.
.
.
// do it for another classes 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)