22.08.2012, 12:30
First, watch this video
[ame]http://www.youtube.com/watch?v=JFNiooUUvlI[/ame]
Problems:
1)
2) I can't spawn after I clicked the textdraw.
[ame]http://www.youtube.com/watch?v=JFNiooUUvlI[/ame]
Problems:
1)
2) I can't spawn after I clicked the textdraw.
pawn Код:
//ongamemodeinit
Textdraw0 = TextDrawCreate(156.000000, 134.000000, "1 TERRORIST FORCES");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 0.429998, 1.399999);
TextDrawColor(Textdraw0, -3461377);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 85);
TextDrawTextSize(Textdraw0, 301.000000, 2.000000);
TextDrawSetSelectable(Textdraw0,1);
//onplayerconnect
TogglePlayerSpectating(playerid,1);
SelectTextDraw(playerid,0xFFCB2E44);
TextDrawShowForPlayer(playerid,Textdraw0);
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw0)
{
TogglePlayerSpectating(playerid,0);
SpawnPlayer(playerid);
SetPlayerPos(playerid,0,0,3);
SendClientMessage(playerid,-1,"terror");
CancelSelectTextDraw(playerid);
TextDrawHideForPlayer(playerid,Textdraw0);
return 1;
}
return 1;
}