HELP HELP!
#1

hey how can a Clearchat after i type done again. its my tutorial?...

PHP код:
CMD:done(playeridparams[])
{
    switch(
TutStep[playerid])
    {
        case 
1:
        {
            
HideTutGUIFrame(playerid1);
            
ShowTutGUIFrame(playerid2);
            
TutStep[playerid] = 2;
            
// how to make monet
            
SendClientMessageEx(playeridCOLOR_RED"How to make money:");
            
SendClientMessageEx(playeridCOLOR_YELLOW"There are many jobs located around San Andreas, these are represented");
            
SendClientMessageEx(playeridCOLOR_YELLOW"by ~y~yellow~w~ information icons.");
            
SendClientMessageEx(playeridCOLOR_YELLOW"You can ~g~/withdraw~w~ and ~g~/deposit~w~ money at the bank.");
            
SendClientMessageEx(playeridCOLOR_YELLOW"You can ~g~/atmwithdraw~w~ and ~g~/atmdeposit~w~ cash at a ATM for a small fee.");
            
SendClientMessageEx(playeridCOLOR_YELLOW"You can ~g~/fish~w~ in boats or at the pier for money.");
            
SendClientMessageEx(playeridCOLOR_YELLOW"You can ~g~/guard~w~ people for money.");
            
SendClientMessageEx(playeridCOLOR_YELLOW"You can ~g~/sellgun~w~ to people for money.");
            
SendClientMessageEx(playeridCOLOR_YELLOW"You can ~g~/sellpot~w~ or ~g~/sellcrack~w~ to people for money.");
            
SendClientMessageEx(playeridCOLOR_RED"NOW TYPE /DONE");
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid1457.4854,-1011.5267,26.8438);
            
SetPlayerPos(playerid1457.4854,-1011.5267,-10.0);
            
SetPlayerCameraPos(playerid1457.5421,-1039.4404,28.4274);
            
SetPlayerCameraLookAt(playerid1457.4854,-1011.5267,26.8438);
        }
        case 
2:
        {
            
ShowTutGUIFrame(playerid3);
            
TutStep[playerid] = 3;
            
SendClientMessageEx(playeridCOLOR_RED"Tutorial - Law Enforcement");
            
SendClientMessageEx(playeridCOLOR_YELLOW"There are currently 4 ~b~Law Enforcement~w~ Factions. LSPD, SFPD, SASD and FBI.");
            
SendClientMessageEx(playeridCOLOR_YELLOW"If you cause trouble and break local laws, you may be arrested by one of");
            
SendClientMessageEx(playeridCOLOR_YELLOW"them. If you're wanting to become a part of these factions, apply on our");
            
SendClientMessageEx(playeridCOLOR_YELLOW"forums at TSW-TheSocialWorld.tk");
            
SendClientMessageEx(playeridCOLOR_YELLOW"LSPD(Los Santos Police Department)");
            
SendClientMessageEx(playeridCOLOR_YELLOW"SFPD(San Fierro Police Department)");
            
SendClientMessageEx(playeridCOLOR_YELLOW"SASD(San Andreas Sheriffs Department)");
            
SendClientMessageEx(playeridCOLOR_YELLOW"FBI(Federal Bureau of Investigation)");
               
SendClientMessageEx(playeridCOLOR_RED"NOW TYPE /DONE");
            
// Los Santos ATM (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid2140.5173,-1163.9576,23.9922);
            
SetPlayerPos(playerid1607.0160,-1510.8218,-10.0);
            
SetPlayerCameraPos(playerid1850.1813,-1765.7552,81.9271);
            
SetPlayerCameraLookAt(playerid1607.0160,-1510.8218,207.4438);
        }
        case 
3:
        {
            
ShowTutGUIFrame(playerid4);
            
TutStep[playerid] = 4;
            
// Fishing Pier (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid370.0804,-2087.8767,7.8359);
            
SetPlayerPos(playerid370.0804,-2087.8767,-10.0);
            
SetPlayerCameraPos(playerid423.3802,-2067.7915,29.8605);
            
SetPlayerCameraLookAt(playerid370.0804,-2087.8767,7.8359);
        }
        case 
4:
        {
            
ShowTutGUIFrame(playerid5);
            
TutStep[playerid] = 5;
            
// Ganton Gym (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid2229.4968,-1722.0701,13.5625);
            
SetPlayerPos(playerid2229.4968,-1722.0701,-10.0);
            
SetPlayerCameraPos(playerid2211.1460,-1748.3909,29.3744);
            
SetPlayerCameraLookAt(playerid2229.4968,-1722.0701,13.5625);
        }
        case 
5:
        {
            
ShowTutGUIFrame(playerid6);
            
TutStep[playerid] = 6;
            
// Arms Dealer (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid1366.1187,-1275.1248,13.5469);
            
SetPlayerPos(playerid1366.1187,-1275.1248,-10.0);
            
SetPlayerCameraPos(playerid1341.2936,-1294.8105,23.3096);
            
SetPlayerCameraLookAt(playerid1366.1187,-1275.1248,13.5469);
        }
        case 
6:
        {
            
ShowTutGUIFrame(playerid7);
            
TutStep[playerid] = 7;
            
// Drugs Dealer (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid2167.5542,-1673.1503,15.0812);
            
SetPlayerPos(playerid2167.5542,-1673.1503,-10.0);
            
SetPlayerCameraPos(playerid2186.2607,-1693.4254,29.5406);
            
SetPlayerCameraLookAt(playerid2167.5542,-1673.1503,15.0812);
        }
        case 
7:
        {
            
ShowTutGUIFrame(playerid8);
            
TutStep[playerid] = 8;
            
// Drugs Smuggler (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid59.9634,-283.6652,1.5781);
            
SetPlayerPos(playerid59.9634,-283.6652,-10.0);
            
SetPlayerCameraPos(playerid96.4630,-216.5790,34.2965);
            
SetPlayerCameraLookAt(playerid59.9634,-283.6652,1.5781);
        }
        case 
8:
        {
            
ShowTutGUIFrame(playerid9);
            
TutStep[playerid] = 9;
        }
        case 
9:
        {
            for(new 
210f++)
            {
                
HideTutGUIFrame(playeridf);
            }
            
ShowTutGUIFrame(playerid10);
            
TutStep[playerid] = 10;
            
// LSPD (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid1554.3381,-1675.5692,16.1953);
            
SetPlayerPos(playerid1554.3381,-1675.5692,-10.0);
            
SetPlayerCameraPos(playerid1514.7783,-1700.2913,36.7506);
            
SetPlayerCameraLookAt(playerid1554.3381,-1675.5692,16.1953);
        }
        case 
10:
        {
            
HideTutGUIFrame(playerid10);
            
ShowTutGUIFrame(playerid11);
            
TutStep[playerid] = 11;
            
// All Saints (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1175.5581,-1324.7922,18.1610);
            
SetPlayerPos(playerid1188.4574,-1309.2242,-10.0);
            
SetPlayerCameraPos(playerid,1188.4574,-1309.2242,13.5625+6.0);
            
SetPlayerCameraLookAt(playerid,1175.5581,-1324.7922,18.1610);
        }
        case 
11:
        {
            
HideTutGUIFrame(playerid11);
            
ShowTutGUIFrame(playerid12);
            
TutStep[playerid] = 12;
            
// San Andreas News (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,643.6738,-1348.9811,17.7879);
            
SetPlayerPos(playerid643.6738,-1348.9811,-10.0);
            
SetPlayerCameraPos(playerid,616.4327,-1336.6818,20.9202);
            
SetPlayerCameraLookAt(playerid,643.6738,-1348.9811,17.7879);
        }
        case 
12:
        {
            
HideTutGUIFrame(playerid12);
            
ShowTutGUIFrame(playerid13);
            
TutStep[playerid] = 13;
            
// Government (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1478.4708,-1754.7579,16.7400);
            
SetPlayerPos(playerid1478.4708,-1754.7579,-10.0);
            
SetPlayerCameraPos(playerid,1520.2188,-1712.0742,40.5350);
            
SetPlayerCameraLookAt(playerid,1478.4708,-1754.7579,16.7400);
        }
        case 
13:
        {
            
HideTutGUIFrame(playerid13);
            
ShowTutGUIFrame(playerid14);
            
TutStep[playerid] = 14;
            
// TR (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,-2679.5342,1639.0643,65.8865);
            
SetPlayerPos(playerid, -2679.5342,1639.0643,-10.0);
            
SetPlayerCameraPos(playerid,-2734.3477,1520.4971,87.1810);
            
SetPlayerCameraLookAt(playerid,-2679.5342,1639.0643,65.8865);
        }
        case 
14:
        {
            
HideTutGUIFrame(playerid14);
            
ShowTutGUIFrame(playerid15);
            
TutStep[playerid] = 15;
            
// Gang SaC Beach (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,655.5394,-1867.2231,5.4609);
            
SetPlayerPos(playerid655.5394,-1867.2231,-10.0);
            
SetPlayerCameraPos(playerid,699.7435,-1936.7568,24.8646);
            
SetPlayerCameraLookAt(playerid,655.5394,-1867.2231,5.4609);
        }
        case 
15:
        {
            
HideTutGUIFrame(playerid15);
            
ShowTutGUIFrame(playerid16);
            
TutStep[playerid] = 16;
            
// 24/7 Store (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1315.6570,-898.7749,39.5781);
            
SetPlayerPos(playerid1315.6570,-898.7749,-10.0);
            
SetPlayerCameraPos(playerid,1315.4285,-922.5234,44.0355);
            
SetPlayerCameraLookAt(playerid,1315.6570,-898.7749,39.5781);
        }
        case 
16:
        {
            
HideTutGUIFrame(playerid16);
            
ShowTutGUIFrame(playerid17);
            
TutStep[playerid] = 17;
            
// Clothing Store (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1457.1664,-1138.0111,26.6261);
            
SetPlayerPos(playerid1457.1664,-1138.0111,-10.0);
            
SetPlayerCameraPos(playerid,1459.0411,-1156.4342,33.4464);
            
SetPlayerCameraLookAt(playerid,1457.1664,-1138.0111,26.6261);
        }
        case 
17:
        {
            
HideTutGUIFrame(playerid17);
            
ShowTutGUIFrame(playerid18);
            
TutStep[playerid] = 18;
            
// Car Dealership (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1656.6107,-1892.3878,13.5521);
            
SetPlayerPos(playerid,1656.6107,-1892.3878,-10.0);
            
SetPlayerCameraPos(playerid,1678.1699,-1863.5964,22.9622);
            
SetPlayerCameraLookAt(playerid,1656.6107,-1892.3878,13.5521);
        }
        case 
18:
        {
            
HideTutGUIFrame(playerid18);
            
ShowTutGUIFrame(playerid19);
            
TutStep[playerid] = 19;
            
// Los Santos (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1607.0160,-1510.8218,207.4438);
            
SetPlayerPos(playerid,1607.0160,-1510.8218,-10.0);
            
SetPlayerCameraPos(playerid,1850.1813,-1765.7552,81.9271);
            
SetPlayerCameraLookAt(playerid,1607.0160,-1510.8218,207.4438);
        }
        case 
19:
        {
            
HideTutGUIFrame(playerid19);
            
ShowTutGUIFrame(playerid20);
            
TutStep[playerid] = 20;
            
// VIP (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1797.3397,-1578.3440,14.0798);
            
SetPlayerPos(playerid,1797.3397,-1578.3440,-10.0);
            
SetPlayerCameraPos(playerid,1832.1698,-1600.1538,32.2877);
            
SetPlayerCameraLookAt(playerid,1797.3397,-1578.3440,14.0798);
        }
        case 
20:
        {
            
HideTutGUIFrame(playerid20);
            
ShowTutGUIFrame(playerid21);
            
TutStep[playerid] = 21;
            
// Unity Station (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1716.1129,-1880.0715,22.0264);
            
SetPlayerPos(playerid,1716.1129,-1880.0715,-10.0);
            
SetPlayerCameraPos(playerid,1755.0413,-1824.8710,20.2100);
            
SetPlayerCameraLookAt(playerid,1716.1129,-1880.0715,22.0264);
        }
        case 
21:
        {
            
HideTutGUIFrame(playerid21);
            
ShowTutGUIFrame(playerid22);
            
TutStep[playerid] = 22;
            
// Unity Station (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1716.1129,-1880.0715,22.0264);
            
SetPlayerPos(playerid,1716.1129,-1880.0715,-10.0);
            
SetPlayerCameraPos(playerid,1755.0413,-1824.8710,20.2100);
            
SetPlayerCameraLookAt(playerid,1716.1129,-1880.0715,22.0264);
        }
        case 
22:
        {
            
HideTutGUIFrame(playerid22);
            
ShowTutGUIFrame(playerid23);
            
TutStep[playerid] = 23;
            
// Unity Station (Camera)
            
SetPlayerVirtualWorld(playerid0);
            
SetPlayerInterior(playerid0);
            
Streamer_UpdateEx(playerid,1716.1129,-1880.0715,22.0264);
            
SetPlayerPos(playerid,1716.1129,-1880.0715,-10.0);
            
SetPlayerCameraPos(playerid,1755.0413,-1824.8710,20.2100);
            
SetPlayerCameraLookAt(playerid,1716.1129,-1880.0715,22.0264);
        }
        case 
23:
        {
            
TutStep[playerid] = 24;
            
PlayerInfo[playerid][pTut] = 1;
            
gOoc[playerid] = 0gNews[playerid] = 0gFam[playerid] = 0;
            
ClearChatbox(playerid);
            
TogglePlayerControllable(playerid1);
            
SetCamBack(playerid);
            
DeletePVar(playerid"MedicBill");
            
SetPlayerColor(playerid,TEAM_HIT_COLOR);
            
SetPlayerInterior(playerid,0);
            
SetPlayerPos(playerid1715.1201,-1903.1711,13.5665);
            
SetPlayerFacingAngle(playerid359.4621);
            
SetCameraBehindPlayer(playerid);
            
SetPlayerVirtualWorld(playerid0);
        }
    }
    return 
1;

Reply
#2

pawn Код:
stock ClearChat(playerid)
{
    for(new i=0; i<30; i++)
    {
    scm(playerid,COLOR_RED," ");
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)