/////////////////////////////////////////////////////////* Halloween-i tök script by Tomasz */////////////////////////////////////////////////////////#include <a_samp>#include <zcmd>#define SCM SendClientMessage#define PIROS 0xFF0000FFnew tok[MAX_PLAYERS];new oTok[MAX_PLAYERS];main(){printf(\"\\n----------------------------------------------------\");printf(\" Halloween-i tök script by Tomasz \");printf(\"----------------------------------------------------\");}forward TokRohadas(playerid);public TokRohadas(playerid){DestroyObject(oTok[playerid]);SCM(playerid,PIROS,\"Elrohadt a tököd!\");return 1;}public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ){if(tok[playerid] == 2){ tok[playerid] = 1; DestroyObject(oTok[playerid]); oTok[playerid] = CreateObject(19320,fX,fY,fZ,fRotX,fRotY,fRotZ,100); SetTimerEx(\"TokRohadas\",60*60000,false,\"i\",playerid);}return 1;}CMD:lerak(playerid){if(tok[playerid] == 0){ new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z);oTok[playerid] = CreateObject(19320,x+3,y,z,0,0,0,100);EditObject(playerid,oTok[playerid]);tok[playerid] = 2;}else if(tok[playerid] == 1)SCM(playerid,PIROS,\"Neked már van egy tököd, várd meg amíg elrohad!\");return 1;}
Szép!Lehet felhasználom.
Sziasztok! Halloween-ra (bár kicsit elkésve) készítettem egy egyszerű kis rövid kódot ami abból áll hogy tudsz lerakni tököt ami 1 óra múlva elrohad és törlődik az object. elkésve? felétek mikor van halloween?
/////////////////////////////////////////////////////////* Halloween-i tök script by Tomasz */////////////////////////////////////////////////////////#include <a_samp>#include <zcmd>#define SCM SendClientMessage#define PIROS 0xFF0000FFnew tok[MAX_PLAYERS];new Tuz[MAX_PLAYERS];new oTok[MAX_PLAYERS];main(){ printf(\"\\n----------------------------------------------------\"); printf(\" Halloween-i tök script by Tomasz \"); printf(\"----------------------------------------------------\");}forward TokRohadas(playerid);public TokRohadas(playerid){ DestroyObject(oTok[playerid]); DestroyObject(Tuz[playerid]); SCM(playerid,PIROS,\"Elrohadt a tököd!\"); return 1;}public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ){ if(tok[playerid] == 2) { tok[playerid] = 1; DestroyObject(oTok[playerid]); DestroyObject(Tuz[playerid]); oTok[playerid] = CreateObject(19320,fX,fY,fZ,fRotX,fRotY,fRotZ,100); Tuz[playerid] = CreateObject(18688,fX,fY,fZ,fRotX,fRotY,fRotZ,100); SetTimerEx(\"TokRohadas\",60*60000,false,\"i\",playerid); } return 1;}CMD:lerak(playerid){ if(tok[playerid] == 0) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); oTok[playerid] = CreateObject(19320,x+3,y,z,0,0,0,100); Tuz[playerid] = CreateObject(18688,x+3,y,z,0,0,0,100); EditObject(playerid,oTok[playerid]); EditObject(playerid,Tuz[playerid]); tok[playerid] = 2; } else if(tok[playerid] == 1)SCM(playerid,PIROS,\"Neked már van egy tököd, várd meg amíg elrohad!\"); return 1;}
Felénk 22-én van halloween, de ez igazából pontosan nem tudom mikor van szóval úgy gondoltam inkább odaírom
Villogót rakj bele.
/////////////////////////////////////////////////////////* Halloween-i tök script by Tomasz */////////////////////////////////////////////////////////#include <a_samp>#include <zcmd>#define SCM SendClientMessage#define PIROS 0xFF0000FFnew tok[MAX_PLAYERS];new Tuz[MAX_PLAYERS];new oTok[MAX_PLAYERS];main(){ printf(\"\\n----------------------------------------------------\"); printf(\" Halloween-i tök script by Tomasz \"); printf(\"----------------------------------------------------\");}forward TokRohadas(playerid);public TokRohadas(playerid){ DestroyObject(oTok[playerid]); DestroyObject(Tuz[playerid]); SCM(playerid,PIROS,\"Elrohadt a tököd!\"); return 1;}public OnPlayerEditObject(playerid, playerobject, objectid, response, Float:fX, Float:fY, Float:fZ, Float:fRotX, Float:fRotY, Float:fRotZ){ if(tok[playerid] == 2) { tok[playerid] = 1; DestroyObject(oTok[playerid]); DestroyObject(Tuz[playerid]); oTok[playerid] = CreateObject(19320,fX,fY,fZ,fRotX,fRotY,fRotZ,100); Tuz[playerid] = CreateObject(19294,fX,fY,fZ,fRotX,fRotY,fRotZ,100); SetTimerEx(\"TokRohadas\",60*60000,false,\"i\",playerid); } return 1;}CMD:lerak(playerid){ if(tok[playerid] == 0) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); oTok[playerid] = CreateObject(19320,x+3,y,z,0,0,0,100); Tuz[playerid] = CreateObject(19294,x+3,y,z,0,0,0,100); EditObject(playerid,oTok[playerid]); EditObject(playerid,Tuz[playerid]); tok[playerid] = 2; } else if(tok[playerid] == 1)SCM(playerid,PIROS,\"Neked már van egy tököd, várd meg amíg elrohad!\"); return 1;}