SA-MP Forums Archive
Commands Doesn't Work - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Commands Doesn't Work (/showthread.php?tid=378402)



Commands Doesn't Work - Dixon_Smith - 17.09.2012

When Im Connected To The Server The Commands Doesn't Work,public OnPlayerConnect:
PHP код:
public OnPlayerConnect(playerid)
{
    new 
vehid GetPlayerVehicleID(playerid)
    
TextDrawShowForPlayer(playeridTextdraw3);
    
TextDrawShowForPlayer(playeridTextdraw0);
    
pTazed[playerid] = 0;
    
pTazer[playerid] = 0;
    
TazerAcceso[playerid] = 0;
    
C4Plant[vehid] = 0;
    new 
plname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridplnamesizeof(plname));
    
WPlayer[playerid][pGun1] = dini_Int(wpfile(playerid), "Gunlist1");
    
WPlayer[playerid][pGun2] = dini_Int(wpfile(playerid), "Gunlist2");
    
WPlayer[playerid][pGun3] = dini_Int(wpfile(playerid), "Gunlist3");
    
WPlayer[playerid][pGun4] = dini_Int(wpfile(playerid), "Gunlist4");
    
WPlayer[playerid][pGun5] = dini_Int(wpfile(playerid), "Gunlist5");
    
WPlayer[playerid][pGun6] = dini_Int(wpfile(playerid), "Gunlist6");
    
WPlayer[playerid][pGun7] = dini_Int(wpfile(playerid), "Gunlist7");
    
WPlayer[playerid][pGun8] = dini_Int(wpfile(playerid), "Gunlist8");
    
WPlayer[playerid][pGun9] = dini_Int(wpfile(playerid), "Gunlist9");
    
WPlayer[playerid][pGun10] = dini_Int(wpfile(playerid), "Gunlist10");
    
WPlayer[playerid][pGun11] = dini_Int(wpfile(playerid), "Gunlist11");
    
WPlayer[playerid][pGun12] = dini_Int(wpfile(playerid), "Gunlist12");
    
WPlayer[playerid][pGun13] = dini_Int(wpfile(playerid), "Gunlist13");
    
WPlayer[playerid][pGun14] = dini_Int(wpfile(playerid), "Gunlist14");
    
WPlayer[playerid][pGun15] = dini_Int(wpfile(playerid), "Gunlist15");
    
WPlayer[playerid][pGun16] = dini_Int(wpfile(playerid), "Gunlist16");
    
WPlayer[playerid][pGun17] = dini_Int(wpfile(playerid), "Gunlist17");
    
WPlayer[playerid][pGun18] = dini_Int(wpfile(playerid), "Gunlist18");
    
WPlayer[playerid][pGun19] = dini_Int(wpfile(playerid), "Gunlist19");
    
WPlayer[playerid][pGun20] = dini_Int(wpfile(playerid), "Gunlist20");
    
WPlayer[playerid][pGun21] = dini_Int(wpfile(playerid), "Gunlist21");
    
WPlayer[playerid][pGun22] = dini_Int(wpfile(playerid), "Gunlist22");
    
WPlayer[playerid][pGun23] = dini_Int(wpfile(playerid), "Gunlist23");
    
WPlayer[playerid][pGun24] = dini_Int(wpfile(playerid), "Gunlist24");
    
WPlayer[playerid][pGun25] = dini_Int(wpfile(playerid), "Gunlist25");
    
WPlayer[playerid][pGun26] = dini_Int(wpfile(playerid), "Gunlist26");
    
WPlayer[playerid][pGun27] = dini_Int(wpfile(playerid), "Gunlist27");
    
WPlayer[playerid][pGun28] = dini_Int(wpfile(playerid), "Gunlist28");
    
WPlayer[playerid][pGun29] = dini_Int(wpfile(playerid), "Gunlist29");
    new 
string2[64];
    new 
playername2[MAX_PLAYER_NAME];
    new 
playernamesplit[3][MAX_PLAYER_NAME];
    
GetPlayerName(playeridplayername2sizeof(playername2));
    
split(playername2playernamesplit'_');
    
format(string2sizeof(string2), "users/%s.ini"playername2);
    new 
FileUserFile fopen(string2io_read);
    if ( 
UserFile )
    {
    new 
PassData[256];
    new 
keytmp[256], valtmp[256];
    
freadUserFile PassData sizeofPassData ) );
    
keytmp ini_GetKeyPassData );
    if( 
strcmpkeytmp "Key" true ) == )
    {
    
valtmp ini_GetValuePassData );
    
strmid(PlayerInfo[playerid][pKey], valtmp0strlen(valtmp)-1255);
    }
}
    if(
Security != 0)
    {
        
SendClientMessage(playeridCOLOR_YELLOW"Host has broken one of the Agreement rules, action has been taken.");
        
Kick(playerid);
        return 
1;
    }
    new 
namestring strfind(plname"_"true);
     if(
namestring == -1)
    {
        
SendClientMessage(playeridCOLOR_YELLOW2"SERVER: Your name must be in the format Firstname_Lastname.");
        
Kick(playerid);
        return 
1;
    }
    
//
    
ScriptWeaponsUpdated[playerid] = 0;
    new 
Country[256];
    
GetPlayerCountry(playerid,Country);
    new 
mess[256],IP[256];
    
GetPlayerIp(playerid,IP,sizeof(IP));
    
format(mess,sizeof(mess),"%s has joined the server.[Country: %s |IP Address: %s |Ping: %i ]",plname,Country,IP,GetPlayerPing(playerid));
    
printf(mess);
    
//if(playerid > MAX_PLAYERS) return Kick(playerid);
    //
    
gActivePlayers[playerid]++;
    
numplayers++;
    new 
string[MAX_PLAYER_NAME];
    
veh1[playerid] = 999veh2[playerid] = 999;
    
SelectChar[playerid] = 0HidePM[playerid] = 0PhoneOnline[playerid] = 0;
    
SelectCharID[playerid] = 0SelectCharPlace[playerid] = 0ChosenSkin[playerid] = 0;
    
GettingJob[playerid] = 0;
    
KickPlayer[playerid] = 0UsedFind[playerid] = 0;
    
CP[playerid] = 0LCP[playerid] = 0VCP[playerid] = 0Robbed[playerid] = 0SpawnChange[playerid] = 1;
    
CarOffer[playerid] = 999CarPrice[playerid] = 0CarID[playerid] = 0;
    
RobbedTime[playerid] = 0MoneyMessage[playerid] = 0Condom[playerid] = 0Rope[playerid] = 0;
    
STDPlayer[playerid] = 0PlayerEaten[playerid] = 0FishWait[playerid] = 0SignalWait[playerid] = 0TeleWait[playerid] = 0Kerchief[playerid] = false;
    
FakeDriv[playerid] = falseFakeFly[playerid] = falseFakeWep[playerid] = false;
    
RepairOffer[playerid] = 999RepairPrice[playerid] = 0RepairCar[playerid] = 0;
    
ColorOffer[playerid]=999ColorPrice[playerid]=0ColorKind[playerid]=0ColorCar[playerid]=0;
    
TalkingLive[playerid] = 255LiveOffer[playerid] = 999TakingLesson[playerid] = 0;
    
RefillOffer[playerid] = 999RefillPrice[playerid] = 0MapIconsShown[playerid] = 0;
    
DrugOffer[playerid] = 999PlayerCuffed[playerid] = 0PlayerCuffedTime[playerid] = 0;
    
DrugPrice[playerid] = 0RegistrationStep[playerid] = 0OnCK[playerid] = 999GettingCK[playerid] = 999;
    
DrugGram[playerid] = 0ConnectedToPC[playerid] = 0OrderReady[playerid] = 0DrugKind[playerid] = 0;
    
JailPrice[playerid] = 0MedicTime[playerid] = 0NeedMedicTime[playerid] = 0MedicBill[playerid] = 0GotHit[playerid] = 0;
    
WantedPoints[playerid] = 0GoChase[playerid] = 999GetChased[playerid] = 999PlacedNews[playerid] = 0;
    
OnDuty[playerid] = 0WantedLevel[playerid] = 0;
    
BoxWaitTime[playerid] = 0SchoolSpawn[playerid] = 0ChangePos2[playerid][1] = 0;
    
SafeTime[playerid] = 60TransportDuty[playerid] = 0PlayerTied[playerid] = 0;
    
BusCallTime[playerid] = 0TaxiCallTime[playerid] = 0MedicCallTime[playerid] = 0MechanicCallTime[playerid] = 0;
    
BusrouteEast[playerid][0] = 0BusrouteWest[playerid][0] = 0BusShowLocation[playerid][0] = 0BusShowLocationC[playerid] = 0;
    
FindTimePoints[playerid] = 0FindTime[playerid] = 0JobDuty[playerid] = 0;
    
Mobile[playerid] = 255Music[playerid] = 0BoxOffer[playerid] = 999PlayerBoxing[playerid] = 0BoxBet[playerid] = 0;
    
Spectate[playerid] = 255//PlayerDrunk[playerid] = 0; PlayerDrunkTime[playerid] = 0;
    
Unspec[playerid][sLocal] = 255FishCount[playerid] = 0;
    
WritingPaper[playerid] = 0WritingPaperNumber[playerid] = 999WritingLine[playerid] = 0BringingPaper[playerid] = 0GotPaper[playerid] = 0;
    
PaperOffer[playerid] = 999/*ConsumingMoney[playerid] = 0;*/
    
ScriptMoney[playerid] = 0ScriptMoneyUpdated[playerid] = 0;
    for (new 
c=0c<13c++) ScriptWeapons[playerid][c] = 0;
    
ScriptWeaponsUpdated[playerid] = 0Specing[playerid] = 0;
    
gLastCar[playerid] = 0FirstSpawn[playerid] = 1;
    
gOoc[playerid] = 0gNews[playerid] = 0BigEar[playerid] = 0gDice[playerid] = 0gFam[playerid] = 0gCFam[playerid]=0;
    
gSpeedo[playerid] = 0gGas[playerid] = 1;
    
gPlayerLogged[playerid] = 0AC_gPlayerLoggedx(playerid,0); gPlayerLogTries[playerid] = 0gPlayerAccount[playerid] = 0;
    
gPlayerSpawned[playerid] = 0PlayerKarting[playerid] = 0PlayerInKart[playerid] = 0;
    
PlayerTazeTime[playerid] = 0PlayerStoned[playerid] = 0;
    
StartTime[playerid] = 0TicketOffer[playerid] = 999TicketMoney[playerid] = 0;
    
MatsHolding[playerid] = 0TutTime[playerid] = 0IsOnUnderCover[playerid]=falseSeatBelt[playerid]=false;
    
TaxiAccepted[playerid] = 999BusAccepted[playerid] = 999Trace[playerid]=999DTracker[playerid] = 999DMole[playerid] = 999;
    
PlayerInfo[playerid][pCash] = dollahNoFuel[playerid] = 0;
    
HireCar[playerid] = 299GangCar[playerid] = 512dying[playerid] = 0;
    
TransportValue[playerid] = 0TransportMoney[playerid] = 0TransportTime[playerid] = 0TransportCost[playerid] = 0TransportDriver[playerid] = 999;
    
Locator[playerid] = 0;
    
WatchingTV[playerid] = 0PlayerPaintballing[playerid] = 0PlayerPaintballKills[playerid] = 0;
    
ProposeOffer[playerid] = 999MarryWitness[playerid] = 999MarryWitnessOffer[playerid] = 999MarriageCeremoney[playerid] = 0ProposedTo[playerid] = 999GotProposedBy[playerid] = 999DivorceOffer[playerid] = 999;
    
//GiveCash(playerid,PlayerInfo[playerid][pCash]);
    
PizzaCallTime[playerid] = 0bPizza[playerid] = 0sPizza[playerid] = 0FarmerVar[playerid] = 0FarmerPickup[playerid][0] = 0SmugglerWork[playerid] = 0SmuggledDrugs[playerid] = 0JustDied[playerid] = 0KnockedDown[playerid] = 0UnidentifedCall[playerid] = 0;
    
LicenseOffer[playerid] = 999LicensePrice[playerid] = 0LicenseType[playerid] = 0UsingDrugs[playerid] = 0AfterTutorial[playerid] = 0;
    
BlindFold[playerid] = 0PlayerIsSweeping[playerid] = 0AdminDuty[playerid] = 0HelperDuty[playerid] = 0PlayerNeedsHelp[playerid] = 0AdminSpec[playerid] = 0IsSmoking[playerid] = 0UsingSmokeAnim[playerid] = 0ReduceTime[playerid] = 0;
    
CreatingGun[playerid] = 0CreatingGunAmmo[playerid] = 0CreatingGunPrice[playerid] = 0IsPuttingMaterials[playerid] = 0IsTakingGun[playerid] = 0lseconds[playerid]=60;
    
InAFoodPlace[playerid] = 0;
    
PlayerInfo[playerid][pLevel] = 0;
    
PlayerInfo[playerid][pAdmin] = 0;
    
PlayerInfo[playerid][pHelper] = 0;
    
PlayerInfo[playerid][pDonateRank] = 0;
    
PlayerInfo[playerid][pBMX] = 0;
    
PlayerInfo[playerid][gPupgrade] = 0;
    
PlayerInfo[playerid][pConnectTime] = 0;
    
PlayerInfo[playerid][pEat] = 0;
    
PlayerInfo[playerid][pReg] = 0;
    
PlayerInfo[playerid][pSex] = 0;
    
PlayerInfo[playerid][pHMoney] = 0;
    
PlayerInfo[playerid][pAge] = 0;
    
PlayerInfo[playerid][pOrigin] = 0;
    
PlayerInfo[playerid][pExp] = 0;
    
PlayerInfo[playerid][pAccount] = 0;
    
PlayerInfo[playerid][pCrimes] = 0;
    
PlayerInfo[playerid][pDeaths] = 0;
    
PlayerInfo[playerid][pArrested] = 0;
    
PlayerInfo[playerid][pWantedDeaths] = 0;
    
PlayerInfo[playerid][pPhoneBook] = 0;
    
PlayerInfo[playerid][pLottoNr] = 0;
    
PlayerInfo[playerid][pJob] = 0;
    
PlayerInfo[playerid][pPayCheck] = 0;
    
PlayerInfo[playerid][pHeadValue] = 0;
    
PlayerInfo[playerid][pJailed] = 0;
    
PlayerInfo[playerid][pJailCell] = 0;
    
PlayerInfo[playerid][pJailTime] = 0;
    
PlayerInfo[playerid][pMats] = 0;
    
//PlayerInfo[playerid][pDrugs] = 0;
    
PlayerInfo[playerid][pWeed] = 0;
    
PlayerInfo[playerid][pCocaine] = 0;
    
PlayerInfo[playerid][pCrack] = 0;
    
PlayerInfo[playerid][pHeroin] = 0;
    
PlayerInfo[playerid][pEcstacy] = 0;
    
PlayerInfo[playerid][pLeader] = 0;
    
PlayerInfo[playerid][pMember] = 0;
    
PlayerInfo[playerid][pFMember] = 0;
    
PlayerInfo[playerid][pFLeader] = 0;
    
PlayerInfo[playerid][pRank] = 0;
    
PlayerInfo[playerid][pContractTime] = 0;
    
PlayerInfo[playerid][pBoxSkill] = 0;
    
PlayerInfo[playerid][pSHealth] = 0.0;
    
PlayerInfo[playerid][pHealth] = 50.0;
    
PlayerInfo[playerid][pPos_x] = 1612.3240;
    
PlayerInfo[playerid][pPos_y] = -2330.1670;
    
PlayerInfo[playerid][pPos_z] = 13.5469;
    
PlayerInfo[playerid][pInt] = 0;
    
PlayerInfo[playerid][pLocal] = 255;
    
PlayerInfo[playerid][pTeam] = 3;
    
PlayerInfo[playerid][pModel] = 7;
    new 
randphone 100000 random(899999);//minimum 1000  max 9999 //giving one at the start
    
PlayerInfo[playerid][pPnumber] = randphone;
    
PlayerInfo[playerid][pPcarkey] = 0;
    
PlayerInfo[playerid][pPcarkey2] = 0;
    
PlayerInfo[playerid][pPcarkey3] = 0;
    
PlayerInfo[playerid][pPhousekey] = 255;
    
PlayerInfo[playerid][pGangKey] = 255;
    
PlayerInfo[playerid][pPbiskey] = 255;
    
PlayerInfo[playerid][pCarLic] = 0;
    
PlayerInfo[playerid][pFlyLic] = 0;
    
PlayerInfo[playerid][pGunLic] = 0;
    
PlayerInfo[playerid][pCarTime] = 0;
    
PlayerInfo[playerid][pPayDay] = 0;
    
PlayerInfo[playerid][pPayDayPU] = 0;
    
PlayerInfo[playerid][pPayDayHad] = 0;
    
PlayerInfo[playerid][pWatch] = 0;
    
PlayerInfo[playerid][pBag] = 0;
    
PlayerInfo[playerid][pCrashed] = 0;
    
PlayerInfo[playerid][pWins] = 0;
    
PlayerInfo[playerid][pLoses] = 0;
    
PlayerInfo[playerid][pAlcoholPerk] = 0;
    
PlayerInfo[playerid][pDrugPerk] = 0;
    
PlayerInfo[playerid][pMiserPerk] = 0;
    
PlayerInfo[playerid][pPainPerk] = 0;
    
PlayerInfo[playerid][pTraderPerk] = 0;
    
PlayerInfo[playerid][pTut] = 0;
    
PlayerInfo[playerid][pWarns] = 0;
    
PlayerInfo[playerid][pFuel] = 0;
    
PlayerInfo[playerid][pGasCan] = 0;
    
PlayerInfo[playerid][pSwat] = 0;
    
PlayerInfo[playerid][pVirWorld] = 0;
    
PlayerInfo[playerid][pRequestingBackup] = 0;
    
PlayerInfo[playerid][pRoadblock] = 0;
    
PlayerInfo[playerid][pFishTool] = 0;
    
strmid(PlayerInfo[playerid][pNote1], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote1s] = 0;
    
strmid(PlayerInfo[playerid][pNote2], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote2s] = 0;
    
strmid(PlayerInfo[playerid][pNote3], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote3s] = 0;
    
strmid(PlayerInfo[playerid][pNote4], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote4s] = 0;
    
strmid(PlayerInfo[playerid][pNote5], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pNote5s] = 0;
    
PlayerInfo[playerid][pLighter] = 0;
    
PlayerInfo[playerid][pCigarettes] = 0;
    
PlayerInfo[playerid][pMask] = 1;
    
PlayerInfo[playerid][pToolkit] = 0;
    
PlayerInfo[playerid][pMaskuse] = 0;
    
PlayerInfo[playerid][pHideNumber] = 0;
    
PlayerInfo[playerid][pSpeaker] = 0;
    
PlayerInfo[playerid][pLocked] = 0;
    
PlayerInfo[playerid][pWT] = 0;
    
PlayerInfo[playerid][pWTc] = 0;
    
strmid(PlayerInfo[playerid][pAccent], "None"0strlen("None"), 255);
    
strmid(PlayerInfo[playerid][pPrisonDate], "00/00/00"0strlen("00/00/00"), 255);
    
strmid(PlayerInfo[playerid][pFakeName], "None"0strlen("None"), 255);
    
PlayerInfo[playerid][pDrivWarn] = 0;
    
PlayerInfo[playerid][pGenWarn] = 0;
    
PlayerInfo[playerid][pLang1] = 0;
    
PlayerInfo[playerid][pLang2] = 0;
    new 
str[256];
    
GetPlayerName(playeridplnamesizeof(plname));
    
format(strsizeof(str), "Vehicles/Players/%s.cfg"plname);
    if(
dini_Exists(str))
    {
        
strmid(PlayerVehicle[playerid][pVeh1], dini_Get(str"Vehicle1"), 0strlen(dini_Get(str"Vehicle1")), 255);
        
strmid(PlayerVehicle[playerid][pVeh2], dini_Get(str"Vehicle2"), 0strlen(dini_Get(str"Vehicle2")), 255);
//        pToolkit[playerid] = dini_Int(str, "Toolkit");
        //return 1;
    
}
    else
    {
        
dini_Create(str);
        
strmid(PlayerVehicle[playerid][pVeh1], "None"0strlen("None"), 255);
        
strmid(PlayerVehicle[playerid][pVeh2], "None"0strlen("None"), 255);
        
//return 1;
    
}
    for(new 
iv 0iv MAX_VEHICLESiv++)
    {
        if(
VehicleInfo[iv][vOwned] == 1)
        {
            if(!
strcmp(plnameVehicleInfo[iv][vOwner], true))
            {
                
format(strsizeof(str), "%s.%s"plnameVehicleNames[GetVehicleModel(iv)-400]);
                if(
strcmp(strPlayerVehicle[playerid][pVeh1], true) == 0)
                {
                    
veh1[playerid] = iv;
                }
                else if(
strcmp(strPlayerVehicle[playerid][pVeh2], true) == 0)
                {
                    
veh2[playerid] = iv;
                }
                break ;
            }
        }
    }
    
pColor[playerid] = -1;
    
pToAccept[playerid] = 255;
    
vToAccept[playerid] = 999;
    
prToAccept[playerid] = 0;
    
//
    
ClearCrime(playerid);
    
//ClearCooking(playerid);
    
ClearGroceries(playerid);
    
ClearMarriage(playerid);
    
SetPlayerColor(playerid,COLOR_GRAD2);
    
HouseEntered[playerid] = 255;
    
BizEntered[playerid] = 255;
    
//map icons
    
SetPlayerMapIcon(playerid1592.6260,-1510.6340,28.609955COLOR_YELLOW);  // Driving School
    
SetPlayerMapIcon(playerid201357.2695,-1647.8325,30.278920COLOR_YELLOW);  // Fire Department
    
SetPlayerMapIcon(playerid5396.2429, -2074.7287.83593825COLOR_YELLOW);  // Fishing School
    
SetPlayerMapIcon(playerid61528.779, -1678.1135.89062530COLOR_YELLOW);  // Police Station
    
SetPlayerMapIcon(playerid7,609.1711,-1241.8591,64.185952COLOR_YELLOW);  // Bank
    
SetPlayerMapIcon(playerid91178.03, -1323.4114.1022COLOR_YELLOW);  // Hospital
    //SetPlayerMapIcon(playerid, 11, 2410.1682,-1220.7765,25.2978, 49, COLOR_YELLOW);    // Pig Pen
    //SetPlayerMapIcon(playerid, 12, 2312.9451,-1645.0206,14.8270, 49, COLOR_YELLOW);    // Ten Green
    //SetPlayerMapIcon(playerid, 14, 1498.4476,-1582.8242,13.5469, 50, COLOR_YELLOW);    // Restaurant
    
SetPlayerMapIcon(playerid152468.4919,-2092.9902,13.546951COLOR_YELLOW);    // Truck Place
    //SetPlayerMapIcon(playerid, 16, 2146.3523,-2267.7498,14.2344, 18, COLOR_YELLOW);    // Gun Dealer Reg.
    //SetPlayerMapIcon(playerid, 17, 1312.4210,-898.5630,39.5781, 52, COLOR_YELLOW);    // 24/7
    //SetPlayerMapIcon(playerid, 18, 1832.4276,-1838.3896,13.5781, 52, COLOR_YELLOW);    // 24/7
    //SetPlayerMapIcon(playerid, 19, 1353.6860,-1757.4297,13.5078, 52, COLOR_YELLOW);    // 24/7
    //SetPlayerMapIcon(playerid, 19, 3588.6843,-1557.0931,3.9948, 19, COLOR_YELLOW);    // Prison
    
SetPlayerMapIcon(playerid212105.4858,-1806.4725,13.554729COLOR_YELLOW);    // Pizza stack
    //SetPlayerMapIcon(playerid, 22, 2229.9011,-1721.2582,13.5613, 54, COLOR_YELLOW);    // Gym
    
SetPlayerMapIcon(playerid232244.3423,-1665.5542,15.476645COLOR_YELLOW);    // Binco
    
SetPlayerMapIcon(playerid252793.02, -1807.4230.7245COLOR_YELLOW);    // Security
    /*for(new h = 184; h < sizeof(CarInfo); h++)
    {
        SetVehicleParamsForPlayer(h,playerid,0,CarInfo[h][cLock]);
    }*/
    
GetPlayerName(playeridplnamesizeof(plname));
    
format(stringsizeof(string), "users/%s.ini"plname);
    
SendClientMessage(playeridCOLOR_WHITE"Welcome to Nexus RolePlay  ,please wait...");
    
AC_OnPlayerConnect(playerid);
    
UpdateID();
    if(!
fexist(string))
    {
        
gPlayerAccount[playerid] = 0;
    }
    else if(
fexist(string))
    {
        
gPlayerAccount[playerid] = 1;
    }
    new 
string3[256];
    
format(string3sizeof(string3), "pLogs/%s.admin.log"plname);
    if(!
fexist(string3))
        
fcreate(string3);
    
format(string3sizeof(string3), "pLogs/%s.crime.log"plname);
    if(!
fexist(string3))
        
fcreate(string3);
    return 
1;




Re: Commands Doesn't Work - vIBIENNYx - 17.09.2012

Instead of OnPlayerConnect

put them inside OnPlayerCommandText


Re: Commands Doesn't Work - Dixon_Smith - 17.09.2012

Quote:
Originally Posted by vIBIENNYx
Посмотреть сообщение
Instead of OnPlayerConnect

put them inside OnPlayerCommandText
Sorry my mistake Im Fix that , the bug no in the script in the filterscript, Admin You can lock the post ..