[Pomoc] Oko GF scripte sitnica

Započeo Brabus, Mart 28, 2011, 03:01:43 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: GodFahter
Detaljan opis problema:

Zanima me kako da stavim s kolko para ce se lik spawnati? Jer ovo je dio scripte:

SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
gPlayerLogged[playerid] = 1;
//GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~g~Welcome Back ~n~~r~   %s", playername2);
DateProp(playerid);
GameTextForPlayer(playerid, tmp2, 5000, 3);
SendClientMessage(playerid, COLOR_YELLOW, motd);
if(PlayerInfo[playerid][pFMember] < 255)
{
    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
}
return 1;
}


Ali svejedno lik se spawna sa 1500$ kod sebe?




Drugo pitanje je to kako da maknem to da kad umres da ti ne uzme 100$ ??

Racun doktora sam maknuo koji je uzimao 500$ al svaki puta kad umrem nesto mi uzme 100$?

Pomoc?

1. Ukucaj u CTRL+F "1500" pa vidi sta ce ti sve izbaciti
2.Pod OnPlayerDeath, nadji negde gde ti oduzima 100 i obrisi

Citat: [Modern] â,,–¹ poslato Mart 28, 2011, 09:03:16 PRE PODNE
1. Ukucaj u CTRL+F "1500" pa vidi sta ce ti sve izbaciti
2.Pod OnPlayerDeath, nadji negde gde ti oduzima 100 i obrisi

Ovo za 1500 sam vec trazio al nema zato vas i pitam ://

SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
gPlayerLogged[playerid] = 1;
//GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~g~Welcome Back ~n~~r~   %s", playername2);
                GivePlayerMoney(playerid, 1500);
DateProp(playerid);
GameTextForPlayer(playerid, tmp2, 5000, 3);
SendClientMessage(playerid, COLOR_YELLOW, motd);
if(PlayerInfo[playerid][pFMember] < 255)
{
    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
}
return 1;
}
Poslednja Izmena: Mart 28, 2011, 11:58:59 PRE PODNE od [CE]Don_Nxidza

Citat: [CE]Don_Nxidza poslato Mart 28, 2011, 11:58:34 PRE PODNE
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
gPlayerLogged[playerid] = 1;
//GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~g~Welcome Back ~n~~r~   %s", playername2);
                GivePlayerMoney(playerid, 1500);
DateProp(playerid);
GameTextForPlayer(playerid, tmp2, 5000, 3);
SendClientMessage(playerid, COLOR_YELLOW, motd);
if(PlayerInfo[playerid][pFMember] < 255)
{
    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
}
return 1;
}


Lol ja mu ne zelim dati 1500$ vec oduzeti -.-

Citat: [BU] Black_Zero poslato Mart 28, 2011, 11:41:54 PRE PODNE
Potrazi

OnPlayerRegister



Potrazit cu to

Citat: Gaby poslato Mart 28, 2011, 20:12:51 POSLE PODNE
Citat: [CE]Don_Nxidza poslato Mart 28, 2011, 11:58:34 PRE PODNE
SetSpawnInfo(playerid, PlayerInfo[playerid][pTeam], PlayerInfo[playerid][pModel], PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z], 1.0, -1, -1, -1, -1, -1, -1);
if(gTeam[playerid] == 0)
{
gTeam[playerid] = 3;
}
else
{
gTeam[playerid] = PlayerInfo[playerid][pTeam];
}
gPlayerLogged[playerid] = 1;
//GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
SpawnPlayer(playerid);
format(tmp2, sizeof(tmp2), "~g~Welcome Back ~n~~r~   %s", playername2);
                GivePlayerMoney(playerid, 1500);
DateProp(playerid);
GameTextForPlayer(playerid, tmp2, 5000, 3);
SendClientMessage(playerid, COLOR_YELLOW, motd);
if(PlayerInfo[playerid][pFMember] < 255)
{
    format(tmp2, sizeof(tmp2), "Family MOTD: %s.", FamilyInfo[PlayerInfo[playerid][pFMember]][FamilyMOTD]);
    SendClientMessage(playerid, COLOR_YELLOW, tmp2);
}
}
return 1;
}


Lol ja mu ne zelim dati 1500$ vec oduzeti -.-

Citat: [BU] Black_Zero poslato Mart 28, 2011, 11:41:54 PRE PODNE
Potrazi

OnPlayerRegister



Potrazit cu to

GivePlayerMoney(playerid, -1500); Eto -/- ako si na to mislio jer te nisam sasvim bas razumeo.

Ne, nego hoce da se covek spawnuje sa 500$ kad se registruje, a ne sa 1500$

Citat: [BU] Black_Zero poslato Mart 28, 2011, 20:56:49 POSLE PODNE
Ne, nego hoce da se covek spawnuje sa 500$ kad se registruje, a ne sa 1500$
hah pa nek samo promijeni iz 1500$ u 500$ covjek mu je dao sta treba :S