Posts: 73
	Threads: 6
	Joined: Feb 2012
	
	
 
	
	
		Hello , 
I have a NGRP script and I want to add a command /skiptut for those who want to skip tutorial .
Can anyone help me please ?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 503
	Threads: 18
	Joined: Jun 2011
	
Reputation: 
0
	 
	
	
		You could just simply remove the whole tutorial text and boxes, then keep the /next.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 1,534
	Threads: 179
	Joined: Apr 2009
	
	
 
	
	
		
pawn Код:
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;
    }
 
	 
	
	
	
		
	
 
 
	
	
	
		
	Posts: 122
	Threads: 20
	Joined: Apr 2013
	
Reputation: 
0
	 
	
	
		And where you add this code?
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;
    }
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 680
	Threads: 26
	Joined: Mar 2013
	
	
 
	
	
		Seems a bit off to ban him, it's NG's fault their script was leaked and the owner makes so much money from it that he couldn't give a rats ass... and didn't NGRP DDoS this forum once?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 680
	Threads: 26
	Joined: Mar 2013
	
	
 
	
	
		
Quote:
| 
					Originally Posted by Potassium  This post was made over a year ago. It was bumped by the person before you because they needed help. Why must you make such huge assumptions? Who says the OP was banned for this post? And even if this topic was made today there could be a million reasons that he was banned. AND most importantly: what on Earth does it have to do with you?! Who are you to question the decisions of the admins? Come on man, stop being annoying and getting into everyone's business, just live your own damn life! | 
 Oh well, it's just the SAMP forums. When I come online I don't really care about when someone assumes something on a topic like this, and I don't expect other people to either... so what I assume he got banned for asking for help with a leaked script, this doesn't effect anyone here at all if I do that and I don't know why anybody would feel offended over it.