13.01.2015, 07:36
how to fix this ?
i use /ls textdraw work
and i use/ls again textdraw not moved to the top
i use /ls textdraw work
and i use/ls again textdraw not moved to the top
Код:
CMD:vstunt( playerid, params[ ] ) { SetPlayerPos(playerid, 2078.6533,-2543.2195,18.5390); SetPlayerFacingAngle(playerid, 0.0); SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[TELEPORT] {B7FF00}: {FFFFFF}You have teleported to Vortex Stunt"); new newtext[41], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(newtext, sizeof(newtext), "%s has teleported to /vstunt", name); TextDrawSetString(TeleportTextdraw0, newtext); TextDrawShowForPlayer(playerid, TeleportTextdraw0); return 1; } CMD:ls( playerid, params[ ] ) { if(IsPlayerInAnyVehicle(playerid)) { new vehid = GetPlayerVehicleID(playerid); SetPlayerPos(playerid,2483.0735,-1669.1608,13.4763); SetVehiclePos(vehid,2483.0735,-1669.1608,13.4763); PutPlayerInVehicle(playerid,vehid,0); SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[TELEPORT] {B7FF00}: {FFFFFF}You have teleported to Los Santos"); new newtext[41], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(newtext, sizeof(newtext), "%s has teleported to /ls", name); TextDrawSetString(TeleportTextdraw1, newtext); TextDrawHideForPlayer(playerid, TeleportTextdraw0); TextDrawShowForPlayer(playerid, TeleportTextdraw1); } else { SetPlayerPos(playerid,2497.1946,-1669.4393,13.4763); SetPlayerFacingAngle(playerid, 0.0); SendClientMessage(playerid, COLOR_WHITE, "{F3FF02}[TELEPORT] {B7FF00}: {FFFFFF}You have teleported to Los Santos"); new newtext[41], name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(newtext, sizeof(newtext), "%s has teleported to /ls", name); TextDrawSetString(TeleportTextdraw1, newtext); TextDrawHideForPlayer(playerid, TeleportTextdraw0); TextDrawShowForPlayer(playerid, TeleportTextdraw1); } return 1; }