Hey,
if(strcmp(cmd, "/speedo", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSpeedo] == 1)
{
PlayerInfo[playerid][pSpeedo] = 2;
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~g~an", 5000, 5);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
}
else if(PlayerInfo[playerid][pSpeedo] == 2)
{
PlayerInfo[playerid][pSpeedo] = 1;
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~r~aus", 5000, 5);
PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du hast keinen Speedometer");
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s [CMD] -> /speedo",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
return 1;
}
Wie kann ich es machen, dass auch ein Beifahrer den Speedo sehen kann?
edit: Es steht dann scho da "an" oder "aus" aber den Speedo kann man nicht sehen