Szerző Téma: Connect textdraw  (Megtekintve 715 alkalommal)

Connect textdraw
« Dátum: 2013. november 19. - 19:42:38 »
0 Show voters
Mi lehet a gond miért nem jelenik meg a textdraw csatlakozásnál?
 

#include <a_samp>
new Text:Box[MAX_PLAYERS];
new Text:BannedNotice[MAX_PLAYERS];
#if defined FILTERSCRIPT
public OnFilterScriptInit(){
    for(new playerid; playerid < MAX_PLAYERS; playerid ++) {
{
    Box[playerid] = TextDrawCreate(2.000000, 0.000000, \"~n~\");
        TextDrawBackgroundColor(Box[playerid], 255);
        TextDrawFont(Box[playerid], 1);
        TextDrawLetterSize(Box[playerid], 0.500000, 49.700004);
        TextDrawColor(Box[playerid], -1);
        TextDrawSetOutline(Box[playerid], 0);
        TextDrawSetProportional(Box[playerid], 1);
        TextDrawSetShadow(Box[playerid], 1);
        TextDrawUseBox(Box[playerid], 1);
        TextDrawBoxColor(Box[playerid], 255);
        TextDrawTextSize(Box[playerid], 637.000000, 20.000000);
BannedNotice[playerid] = TextDrawCreate(120.000000, 129.000000, \"~w~sziaaaaaaaaaaaaaaa\");
        TextDrawBackgroundColor(BannedNotice[playerid], 255);
        TextDrawFont(BannedNotice[playerid], 1);
        TextDrawLetterSize(BannedNotice[playerid], 0.600000, 5.000000);
        TextDrawColor(BannedNotice[playerid], -1);
        TextDrawSetOutline(BannedNotice[playerid], 0);
        TextDrawSetProportional(BannedNotice[playerid], 1);
        TextDrawSetShadow(BannedNotice[playerid], 1);
return 1;
}
{
public OnFilterScriptExit()
{
    TextDrawHideForAll(Box);
        TextDrawDestroy(Box);
        TextDrawHideForAll(BannedNotice);
        TextDrawDestroy(BannedNotice);
return 1;
}
#endif
 
public OnPlayerRequestClass(playerid, classid)
{
    TextDrawShowForPlayer(playerid, Box[playerid]);
    TextDrawShowForPlayer(playerid, BannedNotice[playerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, Box[playerid]);
    TextDrawShowForPlayer(playerid, BannedNotice[playerid]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
    TextDrawHideForPlayer(playerid, Box[playerid]);
    TextDrawHideForPlayer(playerid, BannedNotice[playerid]);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}
public OnRconCommand(cmd[])
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnObjectMoved(objectid)
{
return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}
public OnPlayerExitedMenu(playerid)
{
return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}
public OnPlayerUpdate(playerid)
{
return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}
« Utoljára szerkesztve: 2013. november 19. - 19:45:16 írta Stewart »

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
Connect textdraw
« Válasz #1 Dátum: 2013. november 19. - 22:08:49 »
+1 Show voters
Szia, most próbáld meg:
 
#include 
new Text:Box[MAX_PLAYERS];
new Text:BannedNotice[MAX_PLAYERS];
public OnFilterScriptInit()
{
   for(new playerid; playerid < MAX_PLAYERS; playerid ++)
{
Box[playerid] = TextDrawCreate(2.000000, 0.000000, \"~n~\");
TextDrawBackgroundColor(Box[playerid], 255);
TextDrawFont(Box[playerid], 1);
TextDrawLetterSize(Box[playerid], 0.500000, 49.700004);
TextDrawColor(Box[playerid], -1);
TextDrawSetOutline(Box[playerid], 0);
TextDrawSetProportional(Box[playerid], 1);
TextDrawSetShadow(Box[playerid], 1);
TextDrawUseBox(Box[playerid], 1);
TextDrawBoxColor(Box[playerid], 255);
TextDrawTextSize(Box[playerid], 637.000000, 20.000000);
BannedNotice[playerid] = TextDrawCreate(120.000000, 129.000000, \"~w~sziaaaaaaaaaaaaaaa\");
TextDrawBackgroundColor(BannedNotice[playerid], 255);
TextDrawFont(BannedNotice[playerid], 1);
TextDrawLetterSize(BannedNotice[playerid], 0.600000, 5.000000);
TextDrawColor(BannedNotice[playerid], -1);
TextDrawSetOutline(BannedNotice[playerid], 0);
TextDrawSetProportional(BannedNotice[playerid], 1);
TextDrawSetShadow(BannedNotice[playerid], 1);
}
return 1;
}
public OnFilterScriptExit()
{
for(new i;i   {
TextDrawHideForAll(Box);
TextDrawDestroy(Box);
TextDrawHideForAll(BannedNotice);
TextDrawDestroy(BannedNotice);
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
TextDrawShowForPlayer(playerid, Box[playerid]);
TextDrawShowForPlayer(playerid, BannedNotice[playerid]);
return 1;
}
public OnPlayerConnect(playerid)
{
   TextDrawShowForPlayer(playerid, Box[playerid]);
   TextDrawShowForPlayer(playerid, BannedNotice[playerid]);
   return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
   return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawHideForPlayer(playerid, Box[playerid]);
TextDrawHideForPlayer(playerid, BannedNotice[playerid]);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
   return 1;
}
public OnVehicleSpawn(vehicleid)
{
   return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
   return 1;
}
public OnPlayerText(playerid, text[])
{
   return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
   return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
   return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
   return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
   return 1;
}
public OnPlayerLeaveCheckpoint(playerid)
{
   return 1;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
   return 1;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
   return 1;
}
public OnRconCommand(cmd[])
{
   return 1;
}
public OnPlayerRequestSpawn(playerid)
{
   return 1;
}
public OnObjectMoved(objectid)
{
   return 1;
}
public OnPlayerObjectMoved(playerid, objectid)
{
   return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
   return 1;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
   return 1;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
   return 1;
}
public OnPlayerExitedMenu(playerid)
{
   return 1;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
   return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   return 1;
}
public OnRconLoginAttempt(ip[], password[], success)
{
   return 1;
}
public OnPlayerUpdate(playerid)
{
   return 1;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
   return 1;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
   return 1;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
   return 1;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
   return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   return 1;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
   return 1;
}

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal