Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-01-24, 16:10


wasik95

[KST]






Wiek: 31
Na forum: 5345 dni
Posty: 63
Nick w MP: W_A_S_I_K

Piwa: 12

Respekt: 50

Witam tak jak w temacie chcia?bym wam pokaza? kod na wyp?ate dla dane frakcji jednak nie dzia?a on mi na serwerze nie wyskakuje mi ?aden komunikat
Kod:

SetTimer("botpts", 200000 , 1);
SetTimer("bottaxi", 240000 , 1);
SetTimer("botczysto", 240000 , 1);
SetTimer("botmed", 240000 , 1);
SetTimer("botptn", 240000 , 1);




forward botpts();
public botpts()
{
for(new playerid; playerid != GetMaxPlayers(); playerid++)
{
if(gTeam[playerid] == TEAM_POLICJA)
{
if(GetPVarInt(playerid, "policja") == 1)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " {FFFFFF}Otrzymujesz wyp?at? za prac? w wysoko?ci {00E800}2 Score i 400$");
GivePlayerMoney(playerid, 400);
SetPlayerScore(playerid, GetPlayerScore(playerid)+2);
}
}
}
return 1;
}
forward botmed();
public botmed()
{
for(new playerid; playerid != GetMaxPlayers(); playerid++)
{
if(GetPVarInt(playerid, "policja") == 1)
{
if(gTeam[playerid] == TEAM_MEDYK)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, "{FFFFFF}Otrzymujesz wyp?at? za prac? w wysoko?ci {00E800}2 Score i 400$");
GivePlayerMoney(playerid, 400);
SetPlayerScore(playerid, GetPlayerScore(playerid)+2);
}
}}
return 1;
}
forward bottaxi();
public bottaxi()
{
for(new playerid; playerid != GetMaxPlayers(); playerid++)
{
if(GetPVarInt(playerid, "policja") == 1)
{
if(gTeam[playerid] == TEAM_TAXI)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, "{FFFFFF}Otrzymujesz wyp?at? za prac? w wysoko?ci {00E800}2 Score i 400$");
GivePlayerMoney(playerid, 400);
SetPlayerScore(playerid, GetPlayerScore(playerid)+2);
}
}}
return 1;
}
forward botczysto();
public botczysto()
{
for(new playerid; playerid != GetMaxPlayers(); playerid++)
{if(GetPVarInt(playerid, "policja") == 1)
{
if(gTeam[playerid] == TEAM_pdit)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, "{FFFFFF}Otrzymujesz wyp?at? za prac? w wysoko?ci {00E800}2 Score i 400$");
GivePlayerMoney(playerid, 400);
SetPlayerScore(playerid, GetPlayerScore(playerid)+2);
}
}}
return 1;
}
forward botptn();
public botptn()
{
for(new playerid; playerid != GetMaxPlayers(); playerid++)
{ if(GetPVarInt(playerid, "policja") == 1)
{
if(gTeam[playerid] == TEAM_PSP)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " {FFFFFF}Otrzymujesz wyp?at? za prac? w wysoko?ci {00E800}2 Score i 400$");
GivePlayerMoney(playerid, 400);
SetPlayerScore(playerid, GetPlayerScore(playerid)+2);
}
}}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-24, 16:30


BBBay

It's a Programmer






Wiek: 28
Na forum: 5428 dni
Posty: 97
Nick w MP: xBBBay

Piwa: 340

Respekt: 45,3

Spr?buj tak, i tak samo do psp,pdit,taxi,medyk.

Kod:

forward botpts();
public botpts()
{
for(new playerid; playerid != GetMaxPlayers(); playerid++)
{
{
if(gTeam[playerid] == TEAM_POLICJA)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, " {FFFFFF}Otrzymujesz wyp?at? za prac? w wysoko?ci {00E800}2 Score i 400$");
GivePlayerMoney(playerid, 400);
SetPlayerScore(playerid, GetPlayerScore(playerid)+2);
}
}
}
return 1;
}


Podpis
Launcher + Patcher
http://gtao.pl/inne-launc...4498.htm#597948

Pomogłem? Daj :piwo:
Pomogłeś? Dam :piwo:
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-01-24, 17:11


wasik95

[KST]






Wiek: 31
Na forum: 5345 dni
Posty: 63
Nick w MP: W_A_S_I_K

Piwa: 12

Respekt: 50

Dzi?ki jeste? wielki a masz jeszcze pomys? co zrobi? z buguj?cym si? licznikiem ? zobacz do takiego tematu Piwko u mnie masz

Postaw piwo autorowi tego posta
 

 
Tagi: wypłaty :: dla :: danej :: frakcji
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] Wypłaty dla danej frakcji Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku