Prima Pagina
Doriți să reacționați la acest mesaj? Creați un cont în câteva clickuri sau conectați-vă pentru a continua.


 
AcasaAcasa  Ultimele imaginiUltimele imagini  ÎnregistrareÎnregistrare  ConectareConectare  

 

 [FS]Textdraw pentru teleport

In jos 
3 participanți
AutorMesaj
SpeedOMike

SpeedOMike


Mesaje : 55
Data de inscriere : 30/03/2012
Varsta : 27
Localizare : Bacau

[FS]Textdraw pentru teleport Empty
MesajSubiect: [FS]Textdraw pentru teleport   [FS]Textdraw pentru teleport EmptyVin Mar 30, 2012 2:24 pm

Acum am sa va zic cum se face un TextDraw care arata unde s-a teleportat cineva .

1.Pentru Inceput adaugam la inceputul GM:

Cod:
new Text:TextdrawTele;
new TextTeleTimer = 0;

2.Mergem la OnGameModeInit() si adaugam:


Cod:
TextdrawTele = TextDrawCreate(20.000000, 428.000000, " ");
TextDrawBackgroundColor(TextdrawTele, 255);
TextDrawFont(TextdrawTele, 1);
TextDrawLetterSize(TextdrawTele, 0.300000, 1.000000);
TextDrawColor(TextdrawTele, 16711935);
TextDrawSetOutline(TextdrawTele, 1);
TextDrawSetProportional(TextdrawTele, 1);

3.Mergem la OnPlayerConnect si adaugam:

Cod:
TextDrawHideForPlayer(playerid,TextdrawTele);

4.Mergem la sfarsitul GM-ului si adaugam:

Cod:
stock ShowTele(playerid,const tele[])
{
new string[256],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
//Ex: ~g~LeoN ~w~Has Teleported To ~y~/aa
format(string, sizeof(string), "~g~%s ~w~s-a dus la ~y~%s",pName, tele);
TextDrawSetString(TextdrawTele,string);
TextDrawShowForAll(TextdrawTele);
if(TextTeleTimer == 0)
{
SetTimer("OnTextDrawTeleHide",3000,0);
TextTeleTimer = 1;
}
}

Si :

Cod:
forward OnTextDrawTeleHide();
public OnTextDrawTeleHide()
{
TextDrawHideForAll(TextdrawTele);
TextTeleTimer = 0;
return 1;
}

Si pentru a aparea unde teai teleportat adaugati:

Cod:
ShowTele(playerid,cmdtext);
la fiecare comanda de teleport .
Sus In jos
bLackie

bLackie


Mesaje : 111
Data de inscriere : 18/02/2012
Localizare : UnDeVa In RoMaNia ;x

[FS]Textdraw pentru teleport Empty
MesajSubiect: Re: [FS]Textdraw pentru teleport   [FS]Textdraw pentru teleport EmptyVin Mar 30, 2012 11:00 pm

asta cred ca e mai mult pt mod Stunt
Sus In jos
http://www.kappahosting.forumgratuit.ro
Masta_Stefan

avatar


Mesaje : 207
Data de inscriere : 28/03/2012

[FS]Textdraw pentru teleport Empty
MesajSubiect: Re: [FS]Textdraw pentru teleport   [FS]Textdraw pentru teleport EmptySam Mar 31, 2012 11:42 pm

JohNNy a scris:
asta cred ca e mai mult pt mod Stunt

Da si pt mod stunt ,dar pote si pentru admini Very Happy
Sus In jos
Continut sponsorizat





[FS]Textdraw pentru teleport Empty
MesajSubiect: Re: [FS]Textdraw pentru teleport   [FS]Textdraw pentru teleport Empty

Sus In jos
 
[FS]Textdraw pentru teleport
Sus 
Pagina 1 din 1
 Subiecte similare
-
» cerere pentru fbi
» [FS]Alarma pentru masini
» Cadouri Pentru voi Facute de mine !
» 16 pasi pentru a reduce lagul pe server !
» Tutorial pentru cei care au luat destroy - Incepatori

Permisiunile acestui forum:Nu puteti raspunde la subiectele acestui forum
Prima Pagina :: San Andreas Mutli Player :: Filter Scripts and Includes-
Mergi direct la: