Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: ♥ BMW ♥ poslato Mart 01, 2012, 20:07:59 POSLE PODNE

Naslov: [Pomoc]Lvl i pare
Poruka od: ♥ BMW ♥ poslato Mart 01, 2012, 20:07:59 POSLE PODNE
Skripta koju koristim: CLRP edit
Detaljan opis problema: Kako da napravim da svaki novi igrac dobije lvl 3 i 150k?
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: Blaeks poslato Mart 01, 2012, 20:10:15 POSLE PODNE
Odes pod OnPlayerReg i namestis da mu je pocetni level 3 a novac 150k
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: ♥ BMW ♥ poslato Mart 01, 2012, 20:20:20 POSLE PODNE
Pojasni to, da znam ne bih pitao :/
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: Blaeks poslato Mart 01, 2012, 21:37:58 POSLE PODNE
Nadji ovako nesto pod OnPlayerLogin PlayerInfo[playerid][pLevel] = 1;
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] = 135;
new randphone = 100000 + random(899999);//minimum 1000  max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
PlayerInfo[playerid][pPcarkey3] = 999;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pReg] = 1;
SafeGivePlayerMoney(playerid, 500);


I novac i levele samo stavis koliko zelis
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: Kunnaâ„¢ poslato Mart 01, 2012, 21:40:39 POSLE PODNE
Public OnPlayerLogin   JA mislim da to trebas !
ovako nesta trebas //PlayerInfo[playerid][pAdjustable] = 0;
SafeResetPlayerMoney(playerid);
GivePlayerCash(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 1;
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] = 135;
new randphone = 100000 + random(899999);//minimum 1000  max 9999 //giving one at the start
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
PlayerInfo[playerid][pPcarkey3] = 999;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pReg] = 1;
GivePlayerCash(playerid, 500);//pocetni novac
}
if(PlayerInfo[playerid][pLocked] == 1) // Auto-kick



Nadam se da je to to !
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: ...Nikola... poslato Mart 01, 2012, 21:46:39 POSLE PODNE

        SafeResetPlayerMoney(playerid);
GivePlayerCash(playerid,PlayerInfo[playerid][pCash]);
CurrentMoney[playerid] = PlayerInfo[playerid][pCash];
if(PlayerInfo[playerid][pReg] == 0)
{
PlayerInfo[playerid][pLevel] = 3;
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] = 135;
new randphone = 100000 + random(899999);
PlayerInfo[playerid][pPnumber] = randphone;
PlayerInfo[playerid][pPhousekey] = 255;
PlayerInfo[playerid][pPcarkey] = 999;
PlayerInfo[playerid][pPcarkey2] = 999;
PlayerInfo[playerid][pPcarkey3] = 999;
PlayerInfo[playerid][pPbiskey] = 255;
PlayerInfo[playerid][pAccount] = 0;
PlayerInfo[playerid][pReg] = 1;
GivePlayerCash(playerid, 150000);
}

Ovako zameni i bice ti 3 lvl i 150k kad se registruje neko
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: ♥ BMW ♥ poslato Mart 01, 2012, 22:33:36 POSLE PODNE
Hvala svima..... :)

Moze LOCK!!!
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: Blaeks poslato Mart 01, 2012, 23:02:03 POSLE PODNE
Citat: isk0 poslato Mart 01, 2012, 22:33:36 POSLE PODNE
Hvala svima..... :)

Moze LOCK!!!


Np  :)
Naslov: Odg: [Pomoc]Lvl i pare
Poruka od: Snich poslato Mart 02, 2012, 00:01:56 PRE PODNE
Problem rijesen. LOCK!