[Ajuda] Sistema de Patente
#6

PHP код:
#include a_samp
new PlayerText:TakelotP[MAX_PLAYERS];
#if defined FILTERSCRIPT
#else
public OnFilterScriptInit(){return print("\n||FILTERSCRIPT BY: iTakelot PATENTE LIGADO||\n");}
public 
OnFilterScriptExit(){return print("\n||FILTERSCRIPT BY: iTakelot PATENTE DESLIGADO||\n");}
#endif
public OnPlayerConnect(playerid)
{
    
TakelotP[playerid] = CreatePlayerTextDraw(playerid40.000000,322.000000,"Patente: "); //Crie sua textdraw
    
PlayerTextDrawAlignment(playeridTakelotP[playerid],0);
    
PlayerTextDrawBackgroundColor(playerid,TakelotP[playerid],0x000000ff);
    
PlayerTextDrawFont(playerid,TakelotP[playerid],2);
    
PlayerTextDrawLetterSize(playerid,TakelotP[playerid],0.199999,1.500000);
    
PlayerTextDrawColor(playerid,TakelotP[playerid],0x00ff00ff);
    
PlayerTextDrawSetProportional(playerid,TakelotP[playerid],1);
    
PlayerTextDrawSetShadow(playeridTakelotP[playerid],1);
    
PlayerTextDrawSetOutline(playeridTakelotP[playerid], 1);
    
PlayerTextDrawShowForPlayer(playeridTakelotP);
    return 
1;
}
public 
OnPlayerUpdate(playerid)
{
    new 
str[50];
    if(
GetPlayerScore(playerid) >= 10){
        
format(strsizeof(str), "~g~Patente: ~w~Novato");
        
PlayerTextDrawSetString(playerid,TakelotP[playerid], str);}
    if(
GetPlayerScore(playerid) >= 300){
        
format(strsizeof(str), "~g~Patente: ~w~mediano");
        
PlayerTextDrawSetString(playerid,TakelotP[playerid], str);}
    if(
GetPlayerScore(playerid) >= 600){
        
format(strsizeof(str), "~g~Patente: ~w~amador");
        
PlayerTextDrawSetString(playerid,TakelotP[playerid], str);}
    if(
GetPlayerScore(playerid) >= 1000){
        
format(strsizeof(str), "~g~Patente: ~w~master");
        
PlayerTextDrawSetString(playerid,TakelotP[playerid], str);}
    return 
1;

Reply


Messages In This Thread
Sistema de Patente - by maxblaya01 - 12.08.2015, 20:39
Re: Sistema de Patente - by Lуs - 12.08.2015, 20:46
Re: Sistema de Patente - by maxblaya01 - 12.08.2015, 20:51
Re: Sistema de Patente - by 99fe3rnando - 12.08.2015, 20:55
Re: Sistema de Patente - by maxblaya01 - 14.08.2015, 22:24
Re: Sistema de Patente - by iTakelot - 14.08.2015, 22:56
Re: Sistema de Patente - by maxblaya01 - 15.08.2015, 01:08
Re: Sistema de Patente - by iTakelot - 15.08.2015, 01:24
Re: Sistema de Patente - by Lуs - 15.08.2015, 12:28
Re: Sistema de Patente - by Thider - 15.08.2015, 15:09

Forum Jump:


Users browsing this thread: 3 Guest(s)