Hallo,
ic hwollte wissen , wie man das tutorial überspringt. dann habe ich das gefunden:
if(strcmp(cmd, "/skiptut", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(TutTime[playerid] <= 0) return SendClientMessage(playerid,COLOR_GREY,"You are not in the tutorial!");
CanTalk[playerid] = 1;
TutTime[playerid] = 0;
PlayerInfo[playerid][pSafeSpawn] = 1;
PlayerInfo[playerid][pTut] = 1;
gOoc[playerid] = 0; gNewbie[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
TogglePlayerControllable(playerid, 1);
PlayerInfo[playerid][pHealth] = 100;
PlayerInfo[playerid][pArmor] = 0;
SetPlayerSpawn(playerid);
StopAudioStreamForPlayer(playerid);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You skipped the tutorial.");
}
return 1;
}
Nur wo soll ich das einfügen unter OnPlayerConnect?
danke