Gondolom textdrawos KM óra tehát akkor mondom:
[pawn]CMD:kmorabe(playerid, params[])
{
TextDrawShowForPlayer(playerid, textdrawneve);
return 1;
}
CMD:kmoraki(playerid, params[])
{
TextDrawHideForPlayer(playerid, textdrawneve);
return 1;
}[/pawn]
E: De egy talán praktikusabb:
[pawn]CMD:kmora(playerid,params[])
{
if(GetPVarInt(playerid, \"textdrawok\") == 0)
{
SetPVarInt(playerid, \"textdrawok\", 1);
TextDrawShowForPlayer(playerid, textdrawneve);
}
else if(GetPVarInt(playerid, \"textdrawok\") == 1)
{
TextDrawHideForPlayer(playerid, textdrawneve);
SetPVarInt(playerid, \"textdrawok\", 0);
}
return 1;
}
[/pawn]