public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { new string[256]; format(string, sizeof string, "~b~Local: ~w~ %d", ReturnPlayerZone(playerid)); TextDrawSetString(Textdraw8, string); return 1; } public OnGameModeInit() { Textdraw8 = TextDrawCreate(20.000000, 319.000000, "__"); TextDrawBackgroundColor(Textdraw8, 255); TextDrawFont(Textdraw8, 1); TextDrawLetterSize(Textdraw8, 0.500000, 1.000000); TextDrawColor(Textdraw8, -1); TextDrawSetOutline(Textdraw8, 0); TextDrawSetProportional(Textdraw8, 1); TextDrawSetShadow(Textdraw8, 1); } |
Originally Posted by andmeida10
falta o TextDrawShow...
|
Originally Posted by andmeida10
n pus a funзгo toda, usa Wiki, e no OnPlayerExitVehicle, poem o TextDrawHideForPlayer
|
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(gTeam[playerid] >= 3) { if (IsACopCar(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3) {} else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Furto de carro policial"); } } if (IsAnAmbulance(vehicleid) && !ispassenger) { if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { } else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Furto de uma ambulancia"); } } } new string[256]; format(string, sizeof string, "~b~Local: ~w~ %d", ReturnPlayerZone(playerid)); TextDrawSetString(Textdraw8, string); TextDrawShowForPlayer(playerid, Text:; return 1; } |
public OnGameModeInit()
{
Textdraw8 = TextDrawCreate(20.000000, 319.000000, "%s",ReturnPlayerZone(playerid));
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 1);
TextDrawLetterSize(Textdraw8, 0.500000, 1.000000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 0);
TextDrawSetProportional(Textdraw8, 1);
TextDrawSetShadow(Textdraw8, 1);
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
TextDrawShowForPlayer(playerid, Textdraw8);
return 1;
}
Originally Posted by Miic
pawn Код:
|