-
Příspěvků
86 -
Registrován
-
Aktivní
Content Type
Profiles
Forums
Calendar
Gallery
SA-MP
Everything posted by Macko
-
Dobrý večer, mam prikaz getinfo a chcem aby to nepisalo do chatu ale do tabulky neviem to spravit tu je getinfo dcmd_getinfo(playerid,params[]) { new id = strval(params[0]); if(PlayerInfo[playerid][pAdmin] < 3) return SCM(playerid,C,"{FF0000}[ SAdmin ] {FFFFFF}Nemas SAdminLevel 3"); else if(!IPC(id)) return SCM(playerid,C,"{FF0000}[ SAdmin ] {FFFFFF}Zadal jsi špadné ID"); else if(!params[0]) return SCM(playerid,C,"{FF0000}[ SAdmin ] {FFFFFF}/sgetinfo [iD]"); new str[128]; new string1[128]; new string2[128]; new string3[128]; new string4[128]; new string5[128]; new string6[128]; new string7[128]; new string8[128]; new string9[128]; new Float:Armour; new Float:Health; format(str,128,"{D70000} [ SAdmin ] Informace o hraci %s:",PlayerName(id)); format(string1,128,"{FF0000}Nick: {FFFFFF}%s",PlayerName(id)); format(string2,128,"{FF0000}ID: {FFFFFF}%d",id); format(string3,128,"{FF0000}ID zbrane v ruce: {FFFFFF}%d",GetPlayerWeapon(id)); format(string4,128,"{FF0000}Penez: {FFFFFF}%d",GetPlayerMoney(id)); format(string5,128,"{FF0000}Score: {FFFFFF}%d",GetPlayerScore(id)); format(string6,128,"{FF0000}Ping: {FFFFFF}%d",GetPlayerPing(id)); format(string7,128,"{FF0000}Zivotu: {FFFFFF}%d.0",GetPlayerHealth(id,Health)); format(string8,128,"{FF0000}Vesty: {FFFFFF}%d.0",GetPlayerArmour(id,Armour)); format(string9,128,"{FF0000}ID skinu: {FFFFFF}%d",GetPlayerSkin(id)); SCM(playerid,C,string1); SCM(playerid,C,string2); SCM(playerid,C,string3); SCM(playerid,C,string4); SCM(playerid,C,string5); SCM(playerid,C,string6); SCM(playerid,C,string7); SCM(playerid,C,string8); SCM(playerid,C,string9); return 1; }
-
To si ku*va robíš srandu
-
new nahranycas = 5000,hodina,minuta,sekunda; GetTotalTime(nahranycas,hodina,minuta,sekunda); // teraz sa hodina = 1; minuta = 23; sekunda = 20; toto kde ma dat?
- 17 odpovědí
-
- ewwe
- bez timerů
-
(a 2 další)
Tagged with:
-
To ja neviem :( Ewwe ako to mam teda spravit?
-
warning 204: symbol is assigned a value that is never used: "TimeToTemp" ewwe v OnPlayerDisconnect máš warning
- 17 odpovědí
-
- ewwe
- bez timerů
-
(a 2 další)
Tagged with:
-
Pomohlo inak dobry TuT, trebalo by vsetky TuTy co su pokazene.
- 17 odpovědí
-
- ewwe
- bez timerů
-
(a 2 další)
Tagged with:
-
ok diki ale ako to mam spravit
-
originalni topic http://pawno.cz/topic/30928-game-time-plus/
-
Dobrý večer že otravujem mám script na cas COD: #include #include #include #define COLOR_RED 0xAA3333AA new Minuty[MAX_PLAYERS]; new Hodiny[MAX_PLAYERS]; new Dny[MAX_PLAYERS]; new Sekundy[MAX_PLAYERS]; forward MinutPlus(playerid); forward DenPlus(playerid); forward SekunduPlus(playerid); forward HodinuPlus(); stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } public OnFilterScriptInit() { SetTimer("SekunduPlus",1000,1); SetTimer("DenPlus",1000,1); return 1; } CMD:tvojcas(playerid, params[]){ #pragma unused params new string[256]; format(string,256,"[ Nahrané Dny: %d || Hodiny: %d || Minuty: %d || Sekundy: %d]",Dny[playerid],Hodiny[playerid],Minuty[playerid],Sekundy[playerid]); SendClientMessage(playerid, COLOR_RED, string); return 1; } public OnPlayerConnect(playerid) { Dny[playerid] = dUserINT(PlayerName(playerid)).("Day"); Minuty[playerid] = dUserINT(PlayerName(playerid)).("Minut"); Hodiny[playerid] = dUserINT(PlayerName(playerid)).("Hodin"); Sekundy[playerid] = dUserINT(PlayerName(playerid)).("Sekund"); return 1; } public OnPlayerDisconnect(playerid,reason) { dUserSetINT(PlayerName(playerid)).("Day",Dny[playerid]); dUserSetINT(PlayerName(playerid)).("Hodin",Hodiny[playerid]); dUserSetINT(PlayerName(playerid)).("Minut",Minuty[playerid]); dUserSetINT(PlayerName(playerid)).("Sekund",Sekundy[playerid]); return 1; } public SekunduPlus() { for (new i = 0; i>59; i++){ Sekundy[i] = 0; Minuty[i]++; } } public HodinuPlus() { for (new i = 0; i>59; i++){ Minuty[i] = 0; Hodiny[i]++; } } public DenPlus() { for (new i = 0; i>23; i++){ Hodiny[i] = 0; Dny[i]++; } } A ked som na servery 5min tak mi neukaže 5min ale 0min ako by som to opravil? Dakujem
-
#define PATH "%s.ini" public OnPlayerDisconnect(playerid, reason) { new INI:File = INI_Open(UserPath(playerid)); INI_SetTag(File,"data"); INI_WriteInt(File,"Cash",GetPlayerMoney(playerid)); INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]); INI_WriteInt(File,"Score",PlayerInfo[playerid][pScore]); INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]); INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]); INI_WriteInt(File,"Dny",PlayerInfo[playerid][pDny]); INI_WriteInt(File,"Hodin",PlayerInfo[playerid][pHodiny]); INI_WriteInt(File,"Minut",PlayerInfo[playerid][pMinuty]); INI_WriteInt(File,"Sekund",PlayerInfo[playerid][pSekundy]); INI_Close(File); return 1; }
-
public LoadUser_data(playerid,name[],value[]) { INI_Int("Password",PlayerInfo[playerid][pPass]); INI_Int("Cash",PlayerInfo[playerid][pCash]); INI_Int("Admin",PlayerInfo[playerid][pAdmin]); INI_Int("Kills",PlayerInfo[playerid][pKills]); INI_Int("Deaths",PlayerInfo[playerid][pDeaths]); INI_Int("Dny",PlayerInfo[playerid][pDny]); INI_Int("Hodin",PlayerInfo[playerid][pHodiny]); INI_Int("Minut",PlayerInfo[playerid][pMinuty]); INI_Int("Sekund",PlayerInfo[playerid][pSekundy]); INI_Int("Obcanka",PlayerInfo[playerid][pobcanka]); return 1; } toto mám
-
Dobrý Večer, mám registraciu cez y_ini a ulozi sa mi čo som nahral na servery a ked sa pozrem do SF tak všetko mam na 0
-
Nič moc na tomto Forume je ich kopu a este máš tam chybu je tam iba port na hrača a nie aj s autom
-
diki to povolanie tam si dat že Taxikar
-
aha ok diki a este ked sa zamestnam a sa mi to ulozi ked som odišiel zo serveru s ked pridem na server sa spawnem sa tak ma da pri to zamestnannie?
-
ok ale nechapem načo to bude služit?
-
Dakujem A ako si spravim toto SetPlayerCheckpoint
-
ano
-
ok diki Rado to je blbost iba to dostanem na ruku hned ale ja chcem že si pojdem pre výplatu
-
nech sa ti dari
-
Dakujem A Ako by som spravil tu vyplatu ze (Dostal si od 300€ mozes si ist pre ne do firmy) a ze pridam k firme a a dam vypkata a napise mi ze vybrali ste si svoju vyplatu.
-
#include new taxikar; new povolanie[MAX_PLAYERS]; #define ZLTA 0xFBE757FF #define SCM SendClientMessage public OnGameModeInit() { taxikar = CreatePickup(1274,1,1644.6708,-2287.4236,-1.2018,0); return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == taxikar) { if(povolanie[playerid]!=1) { ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Taxikár","Dať výpoveď\nSkin\nVýplata","O.K","Zrušiť"); } } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if(dialogid==1) { if(response == 1) { if(listitem == 0){ if(povolanie[playerid]!=1) { SCM(playerid,ZLTA,"Zamestnal si sa za taxikára!"); SetPlayerSkin(playerid,270); povolanie[playerid] = 1; SetSpawnInfo(playerid,0,0,2035.8728,1388.3577,10.8203,254.1749,0,0,0,0,0,0); if(listitem == 1) { // To čo chceš vo výplate (dialog alebo správa... to už musíš vedieť sám ) } if(listitem == 2) { SCM(playerid,ZLTA,"Dal si výpoveď!"); povolanie[playerid] = 0; SetSpawnInfo(playerid,0,0,2035.8728,1388.3577,10.8203,254.1749,0,0,0,0,0,0); } } } return 1; } spravil som to takto aj tak mi dava error pri if(response == 1)
-
návod Textdraw z includu (Rýchlo a jednoducho)
Macko replied to Jáá's topic in Herní (SA:MP, CS apod.)
pekné ale nevidim žiadný dowloand ako si písal? -
nejde mi to