Hallo,
wie kann ich beim prp script ein befehl erstellen , womit ich das tutorial überspringen kann. ich hab das mit
if(strcmp(cmd, "skiptut", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(ImTutorial[playerid] <= 0) return SendClientMessage(playerid,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;
}
schon versucht. unter oncommandtext...
weiß jmd eine andere Methode? (prp-script)
mfg
hemran