TextDraws on AddPlayerClass - 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)
+--- Thread: TextDraws on AddPlayerClass (
/showthread.php?tid=499717)
TextDraws on AddPlayerClass -
Tadas - 09.03.2014
Hello, How can I do a textdraw on AddPlayerClass?
Re: TextDraws on AddPlayerClass -
RenovanZ - 09.03.2014
Create the Textdraw under OnPlayerConnect.
Re: TextDraws on AddPlayerClass -
Tadas - 09.03.2014
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.
Re: TextDraws on AddPlayerClass -
amirab - 09.03.2014
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