14.08.2011, 20:46
Hello, i want this command that it is useable only one time, so if player did use /abwesend, then he can't do it again until he used the another one
Код:
CMD:abwesend(playerid,params[]) { SendClientMessage(playerid, FARBE_GRAU, "Du bist nun abwesend! Gib '/anwesend' ein wenn du wieder da bist."); if TogglePlayerControllable(playerid,0); anwesendabwesend[playerid] = Create3DTextLabel("Abwesend",0xFF0000DE,30.0,40.0,50.0,40.0,0); Attach3DTextLabelToPlayer(anwesendabwesend[playerid], playerid, 0.0, 0.0, 0.7); new string3[70]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string3, sizeof(string3), "%s ist nun abwesend.", name); SendClientMessageToAll(FARBE_BRAUN, string3); return 1; } CMD:anwesend(playerid,params[]) { SendClientMessage(playerid, FARBE_GRAU, "Du bist nun wieder anwesend!"); TogglePlayerControllable(playerid,1); new string3[70]; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string3, sizeof(string3), "%s ist wieder anwesend!", name); SendClientMessageToAll(FARBE_BRAUN, string3); Delete3DTextLabel(Text3D:anwesendabwesend[playerid]); return 1; }