Wenn ich /film eingebe kommt nur die rückmeldung "Film Modus deaktiviert".
Im diesen Script soll er verursachen das man die textdraw entfernen und mit gleichen
befehl wieder laden kann.
if (strcmp("/film", cmdtext, true, 10) == 0)
{
if(Film[playerid])
{
Film[playerid] = 1;
KillTimer(aclock);
new string[128];
format(string,sizeof(string),"");
TextDrawSetString(TEXTVGODMODE,string);
TextDrawSetString(TEXTBOOST,string);
TextDrawSetString(LOGO,string);
TextDrawSetString(RealClock,string);
TextDrawSetString(TEXTGODMODE,string);
TextDrawSetString(TEXTAUTONOS,string);
SendClientMessage(playerid,GRÜN,"Film Modus Aktiviert");
return 1;
}
else
{
Film[playerid] = 0;
aclock = SetTimer("UpdateClock",1000,1);
new Spielerdatei[64];
format(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.ini",SpielerName(playerid));
if(GetPVarInt(playerid,"/vgod") == 1)
{
new string[16];
format(string,sizeof(string),"/vgod: ~g~An");
TextDrawSetString(TEXTVGODMODE,string);
}
if(GetPVarInt(playerid,"/vgod") == 0)
{
new string[16];
format(string,sizeof(string),"/vgod: ~r~Aus");
TextDrawSetString(TEXTVGODMODE,string);
}
if(GetPVarInt(playerid,"/boost") == 1)
{
new string[16];
format(string,sizeof(string),"/boost: ~g~An");
TextDrawSetString(TEXTBOOST,string);
}
if(GetPVarInt(playerid,"/boost") == 0)
{
new string[16];
format(string,sizeof(string),"/boost: ~r~Aus");
TextDrawSetString(TEXTBOOST,string);
}
if(GetPVarInt(playerid,"/autonos") == 0)
{
new string[18];
format(string,sizeof(string),"/autonos: ~r~Aus");
TextDrawSetString(TEXTAUTONOS,string);
}
if(GetPVarInt(playerid,"/autonos") == 1)
{
new string[18];
format(string,sizeof(string),"/autonos: ~g~An");
TextDrawSetString(TEXTAUTONOS,string);
}
if(GetPVarInt(playerid,"/god") == 0)
{
new string[18];
format(string,sizeof(string),"/god: ~r~Aus");
TextDrawSetString(TEXTGODMODE,string);
}
if(GetPVarInt(playerid,"/god") == 1)
{
new string[18];
format(string,sizeof(string),"/god: ~g~An");
TextDrawSetString(TEXTGODMODE,string);
}
SendClientMessage(playerid,GRÜN,"Film Modus deaktiviert");
return 1;
}
}