hi, kurz eine kleine Frage.. finde den Fehler nicht
ocmd:tazer(playerid,params[])
{
if(!IsPlayerACop(playerid))return SendClientMessage(playerid,ROT,"Dazu musst du Polizist sein!");
if(GetPVarInt(playerid,"Duty")==0)return SendClientMessage(playerid,ROT,"Dazu musst du im Dienst sein!");
if(GetPVarInt(playerid,"Tazer")==0)
{
tazercolor(playerid);
GivePlayerWeapon(playerid,23,25);
SetPVarInt(playerid,"Tazer",1);
PlayerTextDrawShow(playerid,PlayerText:Textdraw8[playerid]);
TextDrawShowForPlayer(playerid,Text:Textdraw[47]);
TextDrawShowForPlayer(playerid,Text:Textdraw[48]);
}
else
{
SetPlayerAmmo(playerid,23,0);
SetPVarInt(playerid,"Tazer",0);
PlayerTextDrawHide(playerid,PlayerText:Textdraw8[playerid]);
TextDrawHideForPlayer(playerid,Text:Textdraw[47]);
TextDrawHideForPlayer(playerid,Text:Textdraw[48]);
}
return 1;
}
Warum werden die nicht mehr gelöscht?