Szerző Téma: Code átalakítása?  (Megtekintve 408 alkalommal)

Code átalakítása?
« Dátum: 2012. október 23. - 14:16:23 »
0 Show voters
Ezt a códot  hogyan kéne átalakítani hogy az elsõ 4 skin  admin skin a többi civil legyen de ne úgy hogy be kelyen írjam karakterenként hogy  :
 
    switch(classid)
    {
        case 0:
        {
        gTeam[playerid] = RENDOR;
        SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2205.1873,1237.8591,10.8203);
    SetPlayerFacingAngle(playerid, 94.0821);
    SetPlayerCameraPos(playerid, 2201.3657,1237.5986,10.8203);
        SetPlayerCameraLookAt(playerid, 2201.3657,1237.5986,10.8203);
        GameTextForPlayer(playerid, \"~b~Admin skin!\", 3000, 3);
        }
        case 1:
        {
        gTeam[playerid] = CIVIL;
          GameTextForPlayer(playerid, \"~w~CIVIL\", 3000, 4);
         SetPlayerPos(playerid, 2205.1873,1237.8591,10.8203);
        SetPlayerFacingAngle(playerid, 94.0821);
    SetPlayerCameraPos(playerid, 2201.3657,1237.5986,10.8203);
        SetPlayerCameraLookAt(playerid, 2201.3657,1237.5986,10.8203);
        }
    }

 
hanem az elsõ nény skinre vonmatkozzon a rendõr csapat ,a többire pl ha van még 20 skin akokr ne keljen 20-szor megcsinályam hanem csak egyszer
 
   AddPlayerClass(285,1579.5028,-1635.4249,17.9324,346.9123,3,1,0,0,0,0); // Admin
    AddPlayerClass(121,2769.0142,-2418.8230,13.6396,96.7459,8,1,0,0,0,0); // Admin
       AddPlayerClass(0,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1); //Admin
AddPlayerClass(266,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);//Admin
AddPlayerClass(267,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);//CIVIL és innen lefele mind civil
AddPlayerClass(268,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(269,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(270,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(271,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(272,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(280,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
AddPlayerClass(281,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
AddPlayerClass(282,1958.3783,1343.1572,15.3746,270.1425,0,0,24,300,-1,-1);
AddPlayerClass(283,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(284,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);
AddPlayerClass(285,1958.3783,1343.1572,15.3746,269.1425,0,0,24,300,-1,-1);

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal