Hi,
ich habe mal eine frage undzwar kriegt er so wanteds wenn er jemanden killt. Denn ich bin mir unsicher
hier mal die 2 selbstgemachten public public WantedUpdate(playerid)
{
new Wntd = GetPlayerWantedLevel(playerid);
new string[56];
format(string,56,"Wanteds: %d",Wntd);
TextDrawHideForPlayer(playerid,Wanteds);
TextDrawSetString(Wanteds,string);
return TextDrawShowForPlayer(playerid,Wanteds);
}
public WantedSternUpdate(playerid)
{
new Wntd = GetPlayerWantedLevel(playerid);
new string[56];
switch(Wntd)
{
case 0:
{
format(string,56,"~n~ Keine Wanteds ~n~");
}
case 1:
{
format(string,56,"~n~ ~w~] ~n~");
}
case 2:
{
format(string,56,"~n~ ~w~]] ~n~");
}
case 3:
{
format(string,56,"~n~ ~w~]]] ~n~");
}
case 4:
{
format(string,56,"~n~ ]]]] ~n~");
}
case 5:
{
format(string,56,"~n~ ]]]]] ~n~");
}
case 6:
{
format(string,56,"~n~ ~r~]]]]]] ~n~");
}
}
TextDrawHideForPlayer(playerid,Wanteds);
TextDrawSetString(Wanteds,string);
return TextDrawShowForPlayer(playerid,Wanteds);
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid,Wanteds);
WantedUpdate(playerid);
SetTimerEx("WantedUpdate",30000,1,"i",playerid);
return 1;
}