Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FILTERSCRIPT sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
- * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this FILTERSCRIPT without my permission.
- */
- #include <a_samp>
- #include <zcmd> //http://forum.sa-mp.com/showthread.php?t=91354
- #define B "{FFFFFF}" //white
- #define R "{D50000}" //red
- #define CHRISTMAS_ID (1)
- #define TIMER_SNOW (5*1000)
- #define OBJECT_GIFT (19058)
- #define OBJECT_HAT (19064)
- #define OBJECT_SNOW (18864)
- #define BONE_USED (2)
- #define SLOTS_USED (2)
- #define SNOW_WEATHER (20)
- #define MAX_TREE (20)
- #define MAX_DRINKS (20)
- #define MAX_FIREWORKS (20)
- #define TABLES_DRINKS (2764)
- #define BOTTLE_WINE (1551)
- static InfoChristmasVehicle[MAX_VEHICLES][2];
- enum info{
- CreateVehicleChristmas,
- FunctionChristmas[5],
- Float:DataEdition[9],
- bool:DataActivated[5],
- DataObjectsSnow[8],};
- static InfoChristmas[MAX_PLAYERS][info],
- TreeObjects[MAX_TREE][10],
- CountingTreeObjects,
- DrinksObjects[MAX_DRINKS][10],
- CountingDrinksObjects;
- static FireworksObjects[MAX_FIREWORKS][10],
- CountingFireworksObjects, KillUploaFireworks,
- bool:FireworksObjectsActivated[MAX_FIREWORKS],
- SaveFireworksObjects[MAX_PLAYERS],
- ObjectsFireworks[7]={
- (19295),(19296),(19297),(19298),(18716),(18848),(18716) };
- //INFO COMMAND: to turn the machine fireworks.
- COMMAND:fireworks(playerid, params[]){
- new Float:pos[3];
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(DistanceBetweenMachineAndPlayer(playerid, 3.5)){
- if(!FireworksObjectsActivated[SaveFireworksObjects[playerid]]){
- FireworksObjectsActivated[SaveFireworksObjects[playerid]]=true;
- for(new slots=1,index=10;slots!=index;slots++) {DestroyObject(FireworksObjects[SaveFireworksObjects[playerid]][slots]);}
- GetObjectPos(FireworksObjects[SaveFireworksObjects[playerid]][0], pos[0], pos[1], pos[2]);
- FireworksObjects[SaveFireworksObjects[playerid]][1] = CreateObject(ObjectsFireworks[1],pos[0],pos[1],pos[2]+0.5,0,0,0,0);
- FireworksObjects[SaveFireworksObjects[playerid]][2] = CreateObject(ObjectsFireworks[random(4)],pos[0],pos[1],pos[2]+0.5,0,0,0,0);
- FireworksObjects[SaveFireworksObjects[playerid]][3] = CreateObject(ObjectsFireworks[6],pos[0],pos[1],pos[2]+0.5,0,0,0,0);
- MoveObject(FireworksObjects[SaveFireworksObjects[playerid]][2],pos[0],pos[1],pos[2]+30, 10.0);
- MoveObject(FireworksObjects[SaveFireworksObjects[playerid]][3],pos[0],pos[1],pos[2]+30, 10.0);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha encendido la maquina de fuegos artificiales"B"!.");
- }else{
- FireworksObjectsActivated[SaveFireworksObjects[playerid]]=false;
- for(new slots=1,index=10;slots!=index;slots++) {DestroyObject(FireworksObjects[SaveFireworksObjects[playerid]][slots]);}
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha apagado la maquina de fuegos artificiales"B"!.");
- }
- }else{SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra cerca de una maquina de fuegos artificiales"B"!.");}
- return true;
- }
- stock DistanceBetweenMachineAndPlayer(playerid, Float:dist){
- new Float:pos[3];
- for(new slots=0,idx=CountingFireworksObjects+1;slots!=idx;slots++){
- GetObjectPos(FireworksObjects[slots][0], pos[0], pos[1], pos[2]);
- if(IsPlayerInRangeOfPoint(playerid, dist, pos[0], pos[1], pos[2]))return SaveFireworksObjects[playerid]=slots;
- }return false;}
- forward UploaFireworks();
- public UploaFireworks(){
- new Float:pos[3];
- for(new slots=0,index=MAX_FIREWORKS;slots!=index;slots++){
- if(FireworksObjectsActivated[slots]==true){
- if(!IsObjectMoving(FireworksObjects[slots][2])){
- GetObjectPos(FireworksObjects[slots][2], pos[0], pos[1], pos[2]);
- CreateExplosion(pos[0] + float(30 - (30 / 2)), pos[1], pos[2], 7, 10);
- CreateExplosion(pos[0], pos[1] + float(30 - (30 / 2)), pos[2], 7, 10);
- CreateExplosion(pos[0], pos[1], pos[2] + float(30 - (30 / 2)), 7, 10);
- GetObjectPos(FireworksObjects[slots][0], pos[0], pos[1], pos[2]);
- SetObjectPos(FireworksObjects[slots][2], pos[0], pos[1], pos[2]);
- SetObjectPos(FireworksObjects[slots][3], pos[0], pos[1], pos[2]);
- MoveObject(FireworksObjects[slots][2],pos[0],pos[1],pos[2]+30, 10.0);
- MoveObject(FireworksObjects[slots][3],pos[0],pos[1],pos[2]+30, 10.0);
- }
- }
- }
- }
- //INFO COMMAND: to place the base of the fireworks.
- COMMAND:createfireworks(playerid, params[]){
- new Float:pos[4],data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingFireworksObjects>=MAX_FIREWORKS) return SendClientMessage(playerid,-1,""B"INFO:"R"Hay demasiadas maquina de fuegos artificiales creadas"B"!.");
- GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- GetPlayerFacingAngle(playerid,pos[3]);
- pos[0] = pos[0] + (3.0 * floatsin(-pos[3], degrees));
- pos[1] = pos[1] + (3.0 * floatcos(-pos[3], degrees));
- if(CountingFireworksObjects==0){KillTimer(KillUploaFireworks),KillUploaFireworks=SetTimer("UploaFireworks",2*1000,true);}
- CountingFireworksObjects++;
- FireworksObjects[CountingFireworksObjects][0] = CreateObject(ObjectsFireworks[5], pos[0],pos[1],pos[2]-1.5,0,0,pos[3],3000.0);
- SetObjectMaterial(FireworksObjects[CountingFireworksObjects][0], 1, 18848, "milbase", "ws_oldpainted", -1);
- SetObjectMaterial(FireworksObjects[CountingFireworksObjects][0], 4, 18848, "milbase", "ws_oldpainted", -1);
- SetObjectMaterial(FireworksObjects[CountingFireworksObjects][0], 5, 18848, "milbase", "ws_oldpainted", -1);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha creado una correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"maquina de fuegos artificiales creadas: "B"[%02d/%02d]",CountingFireworksObjects,MAX_FIREWORKS);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: to remove created fireworks machines, counting from the most recently created.
- COMMAND:clearfireworks(playerid, params[]){
- new data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingFireworksObjects<=0) return SendClientMessage(playerid,-1,""B"INFO:"R"No hay ninguna maquina de fuegos artificiales creada"B"!.");
- for(new slots=0,index=10;slots!=index;slots++) {DestroyObject(FireworksObjects[CountingFireworksObjects][slots]);}
- FireworksObjectsActivated[CountingFireworksObjects]=false;
- CountingFireworksObjects--;
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha eliminado la ultima maquina de fuegos artificiales creada correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"maquina de fuegos artificiales creadas: "B"[%02d/%02d]",CountingFireworksObjects,MAX_FIREWORKS);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: to eliminate all machines created fireworks.
- COMMAND:clearallfireworks(playerid, params[]){
- new data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingFireworksObjects<=0) return SendClientMessage(playerid,-1,""B"INFO:"R"No hay ninguna maquina de fuegos artificiales creada"B"!.");
- for(new slots=0,idx=CountingFireworksObjects+1;slots!=idx;slots++){
- FireworksObjectsActivated[slots]=false;
- for(new object=0,index=10;object!=index;object++){DestroyObject(FireworksObjects[slots][object]); CountingFireworksObjects=0;} }
- KillTimer(KillUploaFireworks);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha eliminado todas las maquinas de fuegos artificiales creadas correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"maquina de fuegos artificiales creadas: "B"[%02d/%02d]",CountingFireworksObjects,MAX_FIREWORKS);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: hiding inside a gift
- COMMAND:stash(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(InfoChristmas[playerid][DataActivated][4]==false){
- InfoChristmas[playerid][DataActivated][4]=true;
- new Float:pos[4]; GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- DestroyVehicle(InfoChristmas[playerid][CreateVehicleChristmas]);
- InfoChristmas[playerid][CreateVehicleChristmas]=CreateVehicle(571,pos[0],pos[1],pos[2]+3,0,0,0,99999);
- PutPlayerInVehicle(playerid, InfoChristmas[playerid][CreateVehicleChristmas], 0);
- DestroyObject(InfoChristmasVehicle[InfoChristmas[playerid][CreateVehicleChristmas]][1]);
- InfoChristmasVehicle[InfoChristmas[playerid][CreateVehicleChristmas]][1]=CreateObject(OBJECT_GIFT,0,0,0,0,0,0);
- AttachObjectToVehicle(InfoChristmasVehicle[InfoChristmas[playerid][CreateVehicleChristmas]][1],InfoChristmas[playerid][CreateVehicleChristmas],0,2,1,0,0,0);
- LinkVehicleToInterior(InfoChristmas[playerid][CreateVehicleChristmas], 6);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted se ha metido dentro de una caja de regalo"B"!.");
- }else if(InfoChristmas[playerid][DataActivated][4]==true){
- InfoChristmas[playerid][DataActivated][4]=false;
- DestroyObject(InfoChristmasVehicle[InfoChristmas[playerid][CreateVehicleChristmas]][1]);
- RemovePlayerFromVehicle(playerid);
- DestroyVehicle(InfoChristmas[playerid][CreateVehicleChristmas]);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha salido de adentro de una caja de regalo"B"!.");
- } return true;
- }
- //INFO COMMAND: to carry in hands or left in the ground a gift.
- COMMAND:gift(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(InfoChristmas[playerid][DataActivated][3]==false){
- InfoChristmas[playerid][DataActivated][3]=true;
- DestroyObject(InfoChristmas[playerid][FunctionChristmas][1]);
- DestroyPickup(InfoChristmas[playerid][FunctionChristmas][0]);
- InfoChristmas[playerid][FunctionChristmas][1]=CreateObject(OBJECT_GIFT,0,0,0,0,0,0);
- AttachObjectToPlayer(InfoChristmas[playerid][FunctionChristmas][1],playerid,0,1,1,0,0,0);
- ApplyAnimation(playerid,"CARRY","null",0.0,0,0,0,0,0,0);
- ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,0,1,1,1,1,1);
- KillTimer(InfoChristmas[playerid][FunctionChristmas][2]);
- InfoChristmas[playerid][FunctionChristmas][2]=SetTimerEx("UploadWalk",1*1000,true,"d",playerid);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted lleva en los brazos una caja de regalo"B"!.");
- }else if(InfoChristmas[playerid][DataActivated][3]==true){
- new Float:pos[4];
- GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- GetPlayerFacingAngle(playerid,pos[3]);
- pos[0] = pos[0] + (3.0 * floatsin(-pos[3], degrees));
- pos[1] = pos[1] + (3.0 * floatcos(-pos[3], degrees));
- InfoChristmas[playerid][DataActivated][3]=false;
- DestroyObject(InfoChristmas[playerid][FunctionChristmas][1]);
- DestroyPickup(InfoChristmas[playerid][FunctionChristmas][0]);
- InfoChristmas[playerid][FunctionChristmas][0]=CreatePickup(OBJECT_GIFT,1,pos[0],pos[1],pos[2]);
- ApplyAnimation(playerid,"CARRY","null",0.0,0,0,0,0,0,0);
- ApplyAnimation(playerid,"CARRY","putdwn",4.1,0,1,1,0,1,1);
- KillTimer(InfoChristmas[playerid][FunctionChristmas][2]);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha dejado en el suelo una caja de regalo"B"!.");
- } return true;
- }
- forward UploadWalk(playerid);
- public UploadWalk(playerid){ApplyAnimation(playerid,"CARRY","crry_prtial",4.1,0,1,1,1,1,1);}
- //INFO COMMAND: to create a table with drinks.
- COMMAND:drinks(playerid, params[]){
- new Float:pos[4],data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingDrinksObjects>=MAX_DRINKS) return SendClientMessage(playerid,-1,""B"INFO:"R"Hay demasiadas mesas de bebidas creadas!");
- GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- GetPlayerFacingAngle(playerid,pos[3]);
- pos[0] = pos[0] + (3.0 * floatsin(-pos[3], degrees));
- pos[1] = pos[1] + (3.0 * floatcos(-pos[3], degrees));
- CountingDrinksObjects++;
- DrinksObjects[CountingDrinksObjects][0] = CreateObject(TABLES_DRINKS, pos[0],pos[1],pos[2]-0.5,0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][1] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][2] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][3] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][4] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][5] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][6] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][7] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][8] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- DrinksObjects[CountingDrinksObjects][9] = CreateObject(BOTTLE_WINE, 0,0,0.0,0,0,3000.0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][1], DrinksObjects[CountingDrinksObjects][0], 0.0, 0.2, 0.6, 0.0, 0.0, 0.0, 0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][2], DrinksObjects[CountingDrinksObjects][0], 0.0, 0.4, 0.6, 0.0, 0.0, 0.0, 0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][3], DrinksObjects[CountingDrinksObjects][0], 0.0, 0.2, 0.6, 0.0, 0.0, 0.0, 0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][4], DrinksObjects[CountingDrinksObjects][0], 0.0, -0.4, 0.6, 0.0, 0.0, 0.0, 0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][5], DrinksObjects[CountingDrinksObjects][0], 0.0, -0.2, 0.6, 0.0, 0.0, 0.0, 1);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][6], DrinksObjects[CountingDrinksObjects][0], 0.2, 0.0, 0.6, 0.0, 0.0, 0.0, 0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][7], DrinksObjects[CountingDrinksObjects][0], 0.2, 0.0, 0.6, 0.0, 0.0, 0.0, 0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][8], DrinksObjects[CountingDrinksObjects][0], -0.4, 0.0, 0.6, 0.0, 0.0, 0.0, 0);
- AttachObjectToObject(DrinksObjects[CountingDrinksObjects][9], DrinksObjects[CountingDrinksObjects][0], -0.4, 0.0, 0.6, 0.0, 0.0, 0.0, 0);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha creado una mesa de bebidas correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"mesas de bebidas creadas: "B"[%02d/%02d]",CountingDrinksObjects,MAX_DRINKS);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: to remove tables created drink, counting from the last set.
- COMMAND:cleardrinks(playerid, params[]){
- new data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingDrinksObjects<=0) return SendClientMessage(playerid,-1,""B"INFO:"R"No hay ninguna mesa de bebidas creada!");
- for(new slots=0,index=10;slots!=index;slots++) {DestroyObject(DrinksObjects[CountingDrinksObjects][slots]);}
- CountingDrinksObjects--;
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha eliminado la ultima mesa de bebidas creada correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"mesas de bebidas creadas: "B"[%02d/%02d]",CountingDrinksObjects,MAX_DRINKS);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: to remove all tables created drinks.
- COMMAND:clearalldrinks(playerid, params[]){
- new data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingDrinksObjects<=0) return SendClientMessage(playerid,-1,""B"INFO:"R"No hay ninguna mesa de bebidas creada!");
- for(new slots=0,idx=CountingDrinksObjects+1;slots!=idx;slots++){
- for(new object=0,index=10;object!=index;object++){DestroyObject(DrinksObjects[slots][object]); CountingDrinksObjects=0;} }
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha eliminado todas las mesas de bebidas creadas correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"mesas de bebidas creadas: "B"[%02d/%02d]",CountingDrinksObjects,MAX_DRINKS);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: to obtain a bottle of wine.
- COMMAND:wine(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(DistanceBetweenWineAndPlayer(playerid, 3.5)){
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
- switch(random(3)){
- case 0:{SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_BEER); \
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha tomado una botela de cerveza de la mesa"B"!.");}
- case 1:{SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_SPRUNK); \
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha tomado una botela de sprunk de la mesa"B"!.");}
- case 2:{SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE); \
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha tomado una botela de vino de la mesa"B"!.");}
- default:{SendClientMessage(playerid,-1,""B"INFO:"R"No hay mas bebidas por el momento en esta mesa"B"!.");}
- }
- }else{SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra cerca de una mesa de bebidas"B"!.");}
- return true;
- }
- stock DistanceBetweenWineAndPlayer(playerid, Float:dist){
- new Float:pos[3];
- for(new slots=0,idx=CountingDrinksObjects+1;slots!=idx;slots++){
- GetObjectPos(DrinksObjects[slots][0], pos[0], pos[1], pos[2]);
- if(IsPlayerInRangeOfPoint(playerid, dist, pos[0], pos[1], pos[2]))return true;
- }return false;}
- //INFO COMMAND: to send a Christmas greeting to all connected players.
- COMMAND:greeting(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- new nombre[MAX_PLAYER_NAME+1], data[44+MAX_PLAYER_NAME];
- for(new player, user = GetMaxPlayers(); player != user; player++){
- if(IsPlayerConnected(player)){
- GetPlayerName(playerid,nombre,sizeof(nombre));
- format(data,sizeof(data),"~y~%s ~w~saluda: ~n~~r~Felices Fiestas!!!.", nombre);
- GameTextForPlayer(player,data,5000,1);
- }
- } return true;
- }
- //INFO COMMAND: to change the position of the object.
- COMMAND:modifyhat(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(InfoChristmas[playerid][DataActivated][2]==true) return SendClientMessage(playerid,-1,""B"INFO:"R"You are already editing a christmas hat"B"!.");
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
- EditAttachedObject(playerid, SLOTS_USED+0);
- InfoChristmas[playerid][DataActivated][2]=true;
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha comenzado la edicion del gorro de navidad"B"!.");
- return true;
- }
- public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ){
- if(InfoChristmas[playerid][DataActivated][2]==true && InfoChristmas[playerid][DataActivated][1]==true){
- if(response){ //saved with 'SAVE'
- InfoChristmas[playerid][DataEdition][0]=fOffsetX;
- InfoChristmas[playerid][DataEdition][1]=fOffsetY;
- InfoChristmas[playerid][DataEdition][2]=fOffsetZ;
- InfoChristmas[playerid][DataEdition][3]=fRotX;
- InfoChristmas[playerid][DataEdition][4]=fRotY;
- InfoChristmas[playerid][DataEdition][5]=fRotZ;
- InfoChristmas[playerid][DataEdition][6]=fScaleX;
- InfoChristmas[playerid][DataEdition][7]=fScaleY;
- InfoChristmas[playerid][DataEdition][8]=fScaleZ;
- CancelEdit(playerid);
- InfoChristmas[playerid][DataActivated][2]=false;
- //SetPlayerAttachedObject(playerid, index, modelid, boneid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha salido de la edicion del objeto, con la opcion 'SAVE'"B"!.");
- //printf("[DEBUG 'SAVE']: %d,%d,%d,%d,%0.2f,%0.2f,%0.2f,%0.2f,%0.2f,%0.2f",playerid, index, modelid, boneid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
- }else{ //saved with 'ESC'
- CancelEdit(playerid);
- InfoChristmas[playerid][DataActivated][2]=false;
- //SetPlayerAttachedObject(playerid, index, modelid, boneid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha salido de la edicion del objeto, con la opcion 'ESC'"B"!.");
- //printf("[DEBUG 'ESC']: %d,%d,%d,%d,%0.2f,%0.2f,%0.2f,%0.2f,%0.2f,%0.2f",playerid, index, modelid, boneid, fOffsetX, fOffsetY, fOffsetZ, fRotX, fRotY, fRotZ, fScaleX, fScaleY, fScaleZ);
- }
- } return true;
- }
- //INFO COMMAND: to put a Christmas hat on his head.
- COMMAND:christmashat(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(!IsPlayerAttachedObjectSlotUsed(playerid, SLOTS_USED+0) && InfoChristmas[playerid][DataActivated][1]==false){
- InfoChristmas[playerid][DataActivated][1]=true;
- RemovePlayerAttachedObject(playerid, SLOTS_USED+0);
- SetPlayerAttachedObject(playerid, SLOTS_USED+0, OBJECT_HAT, BONE_USED, 0.122999,0.005999,0.016999,40.500019,72.699989,96.699966,1.111000,1.294000,1.000000);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted se ha colocado un gorro de navidad en la cabeza"B"!.");
- SendClientMessage(playerid,-1,""B"INFO:"R"Usa el comando /modifyhat para modificar lap osicon del gorro de navidad"B"!.");
- }else if(IsPlayerAttachedObjectSlotUsed(playerid, SLOTS_USED+0) && InfoChristmas[playerid][DataActivated][1]==true){
- InfoChristmas[playerid][DataActivated][1]=false;
- RemovePlayerAttachedObject(playerid, SLOTS_USED+0);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted se ha sacado el gorro de navidad de la cabeza"B"!.");
- } return true;
- }
- //INFO COMMAND: for your use with a christmas hat on his head all connected players
- COMMAND:christmashatall(playerid, params[]){
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- for(new player, user = GetMaxPlayers(); player != user; player++){
- if(IsPlayerConnected(player)){
- InfoChristmas[player][DataActivated][1]=true;
- RemovePlayerAttachedObject(player, SLOTS_USED+0);
- SetPlayerAttachedObject(player, SLOTS_USED+0, OBJECT_HAT, BONE_USED, 0.122999,0.005999,0.016999,40.500019,72.699989,96.699966,1.111000,1.294000,1.000000);
- SendClientMessage(player,-1,""B"INFO:"R"El administrador le ha colocado un gorro de navidad a todos los jugadores conectados"B"!.");
- SendClientMessage(player,-1,""B"INFO:"R"Usa el comando /modifyhat para modificar lap osicon del gorro de navidadp"B"!.");
- }
- } SendClientMessage(playerid,-1,""B"INFO:"R"Usted le ha colocado un gorro de navidad a todos los jugadores conectados"B"!.");
- return true;
- }
- //INFO COMMAND: Single snow to put all players online.
- COMMAND:snowall(playerid, params[]){
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- for(new player, user = GetMaxPlayers(); player != user; player++){
- if(IsPlayerConnected(player) && !IsPlayerInAnyVehicle(player)){
- InfoChristmas[player][DataActivated][0]=true;
- SetPlayerWeather(player,SNOW_WEATHER);
- new Float:pos[3]; GetPlayerPos(player,pos[0],pos[1],pos[2]);
- for(new index=0; index<8; index++){DestroyPlayerObject(player,InfoChristmas[player][DataObjectsSnow][index]);}
- for(new index=0; index<8; index++){InfoChristmas[player][DataObjectsSnow][index]=CreatePlayerObject(player,OBJECT_SNOW,pos[0]+random(25),pos[1]+random (25), pos[2]-5+random(10),random(280),random(280),0);}
- KillTimer(InfoChristmas[player][FunctionChristmas][3]);
- InfoChristmas[player][FunctionChristmas][3]=SetTimerEx("UploaSnow",TIMER_SNOW,true,"d",player);
- SendClientMessage(player,-1,""B"INFO:"R"El administrador le ha activado la nieve individual a todos los jugadores conectados"B"!.");
- }
- } SendClientMessage(playerid,-1,""B"INFO:"R"Usted le ha activado la nieve individual a todos los jugadores conectados"B"!.");
- return true;
- }
- //INFO COMMAND: individually to put snow.
- COMMAND:snow(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(!InfoChristmas[playerid][DataActivated][0]){
- InfoChristmas[playerid][DataActivated][0]=true;
- SetPlayerWeather(playerid,SNOW_WEATHER);
- new Float:pos[3]; GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- for(new index=0; index<8; index++){DestroyPlayerObject(playerid,InfoChristmas[playerid][DataObjectsSnow][index]);}
- for(new index=0; index<8; index++){InfoChristmas[playerid][DataObjectsSnow][index]=CreatePlayerObject(playerid,OBJECT_SNOW,pos[0]+random(25),pos[1]+random (25), pos[2]-5+random(10),random(280),random(280),0);}
- KillTimer(InfoChristmas[playerid][FunctionChristmas][3]);
- InfoChristmas[playerid][FunctionChristmas][3]=SetTimerEx("UploaSnow",TIMER_SNOW,true,"d",playerid);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha activado la nieve individual"B"!.");
- }else{
- InfoChristmas[playerid][DataActivated][0]=false;
- SetPlayerWeather(playerid,GetWeather());
- for(new index=0; index<8; index++){DestroyPlayerObject(playerid,InfoChristmas[playerid][DataObjectsSnow][index]);}
- KillTimer(InfoChristmas[playerid][FunctionChristmas][3]);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha desactivado la nieve individual"B"!.");
- } return true;
- }
- forward UploaSnow(playerid);
- public UploaSnow(playerid){
- if(!IsPlayerConnected(playerid))return false;
- if(IsPlayerNPC(playerid))return false;
- new Float:pos[3]; GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- for(new index=0; index<8; index++){SetPlayerObjectPos(playerid,InfoChristmas[playerid][DataObjectsSnow][index],pos[0]+random(25),pos[1]+random(25),pos[2]-5+random(10));}
- return true;}
- //INFO COMMAND: Christmas music to put in the position of the nearest tree, individually.
- COMMAND:christmas(playerid, params[]){
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- new Float:pos[3];
- GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
- if(DistanceBetweenTreeAndPlayer(playerid, 3.5)){
- PlayAudioStreamForPlayer(playerid, "http://www.sonidosmp3gratis.com/sounds/cajas-registradoras_5.mp3",pos[0], pos[1], pos[2],20.0,1);
- for(new player, user = GetMaxPlayers(); player != user; player++){
- if(IsPlayerConnected(player) && !IsPlayerInAnyVehicle(player) && (player!=playerid)){
- PlayAudioStreamForPlayer(player, "http://www.sonidosmp3gratis.com/sounds/cajas-registradoras_5.mp3",pos[0], pos[1], pos[2],20.0,1); }
- } for(new msg=0; msg<32; msg++){SendClientMessage(playerid, -1, " ");}
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha colocado musica de navidad en la posicion del arbol cercano"B"!.");
- }else{SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra cerca de un arbol de navidad"B"!.");}
- return true;
- }
- stock DistanceBetweenTreeAndPlayer(playerid, Float:dist){
- new Float:pos[3];
- for(new slots=0,idx=CountingTreeObjects+1;slots!=idx;slots++){
- GetObjectPos(TreeObjects[slots][0], pos[0], pos[1], pos[2]);
- if(IsPlayerInRangeOfPoint(playerid, dist, pos[0], pos[1], pos[2]))return true;
- }return false;}
- //INFO COMMAND: to create a Christmas tree.
- COMMAND:createtree(playerid, params[]){
- new Float:pos[4],data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingTreeObjects>=MAX_TREE) return SendClientMessage(playerid,-1,""B"INFO:"R"Hay demasiados arboles de navidas creados"B"!.");
- GetPlayerPos(playerid,pos[0],pos[1],pos[2]);
- GetPlayerFacingAngle(playerid,pos[3]);
- pos[0] = pos[0] + (3.0 * floatsin(-pos[3], degrees));
- pos[1] = pos[1] + (3.0 * floatcos(-pos[3], degrees));
- CountingTreeObjects++;
- TreeObjects[CountingTreeObjects][0] = CreateObject(19076, pos[0],pos[1],pos[2]-1.0,0.0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][1] = CreateObject(19054, pos[0],pos[1]+1.0, pos[2]-0.4,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][2] = CreateObject(19058, pos[0]+1.0, pos[1], pos[2]-0.4,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][3] = CreateObject(19056, pos[0], pos[1]-1.0, pos[2]-0.4,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][4] = CreateObject(19057, pos[0]-1.0, pos[1], pos[2]-0.4,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][5] = CreateObject(19058, pos[0]-1.5, pos[1]+1.5, pos[2]-1.0,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][6] = CreateObject(19055, pos[0]+1.5, pos[1]-1.5, pos[2]-1.0,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][7] = CreateObject(19057, pos[0]+1.5, pos[1]+1.5, pos[2]-1.0,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][8] = CreateObject(19054, pos[0]-1.5, pos[1]-1.5, pos[2]-1.0,0,0,0.0,3000.0);
- TreeObjects[CountingTreeObjects][9] = CreateObject(3526, pos[0],pos[1],pos[2]-1.0,0,0,3000.0);
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted ha creado un arbol de navidad correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"arbol de navidad creados: "B"[%02d/%02d]",CountingTreeObjects,MAX_TREE);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: to remove a Christmas tree created, counting from the last one created.
- COMMAND:cleartree(playerid, params[]){
- new data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingTreeObjects<=0) return SendClientMessage(playerid,-1,""B"INFO:"R"No hay ningun arbol de navidad creado"B"!.");
- for(new slots=0,index=10;slots!=index;slots++) {DestroyObject(TreeObjects[CountingTreeObjects][slots]);}
- CountingTreeObjects--;
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted a eliminado el ultimo arbol de navidad creado correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"arbol de navidad creado: "B"[%02d/%02d]",CountingTreeObjects,MAX_TREE);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- //INFO COMMAND: to remove all Christmas trees created.
- COMMAND:clearalltree(playerid, params[]){
- new data[100];
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- //if(!IsChristmasDay()) return SendClientMessage(playerid,-1,""B"INFO:"R"Solo puedes usar esta funcion solo en el dia de navidad"B"!.");
- if(GetPlayerState(playerid)!=PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no se encuentra a pie"B"!.");
- if(CountingTreeObjects<=0) return SendClientMessage(playerid,-1,""B"INFO:"R"No hay ningun arbol de navidad creado"B"!.");
- for(new slots=0,idx=CountingTreeObjects+1;slots!=idx;slots++){
- for(new object=0,index=10;object!=index;object++){DestroyObject(TreeObjects[slots][object]); CountingTreeObjects=0;} }
- SendClientMessage(playerid,-1,""B"INFO:"R"Usted a eliminado todos los arboles de navidad creados correctamente"B"!.");
- format(data,sizeof(data),""B"INFO:"R"arbol de navidad creado: "B"[%02d/%02d]",CountingTreeObjects,MAX_TREE);
- SendClientMessage(playerid,-1,data);
- return true;
- }
- COMMAND:utilities(playerid, params[]){
- //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,""B"INFO:"R"Usted no esta autorizado a usar este comando"B"!.");
- new data[2000];
- strcat(data,"1)-: ponerse en una caja de regalo \n");
- strcat(data,"2)-: llevar una caja de regalo. \n");
- strcat(data,"3)-: crear una mesa de bebidas. \n");
- strcat(data,"4)-: eliminar una mesa de bebidas, contando desde la ultima creada \n");
- strcat(data,"5)-: eliminar todas las mesas de bebidas creadas. \n");
- strcat(data,"6)-: obtener una botella de bebida de una mesa creada. \n");
- strcat(data,"7)-: mandas un manesaje navideño a todos los jugadores conectados. \n");
- strcat(data,"8)-: cambiar la posicion del gorro de navidad colocado. \n");
- strcat(data,"9)-: colocarse un gorro de navidad. \n");
- strcat(data,"10)-: colocarle un gorro de navidad a todos los jugadores conectados. \n");
- strcat(data,"11)-: activarles la nieve individual a todos los jugadores conectados. \n");
- strcat(data,"12)-: activar/desactivar la nieve individual. \n");
- strcat(data,"13)-: colocar musica de navidad en la posicion de un arbol cercano. \n");
- strcat(data,"14)-: crear un arbol de navidad. \n");
- strcat(data,"15)-: eliminar un arbol de navidad, contando desde el ultimo creado. \n");
- strcat(data,"16)-: eliminar todosl os arboles de navidad creados. \n");
- strcat(data,"17)-: crear una maquina de fuegos artificiales. \n");
- strcat(data,"18)-: eliminar una maquina de fuegos artificiales, contando desde la ultima creada. \n");
- strcat(data,"19)-: eliminar todas las maquina de fuegos artificiales creadas. \n");
- strcat(data,"20)-: encender/apagar la maquina de fuegos artificiales cercana. ");
- return ShowPlayerDialog(playerid, CHRISTMAS_ID+0, DIALOG_STYLE_LIST, ""B"INFO:"R"utilidades navideñas:", data, "Seleccionar", "Cancelar");
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
- switch(dialogid){
- case CHRISTMAS_ID+0:{
- if(response){
- switch(listitem){
- case 0:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/stash");}
- case 1:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/gift");}
- case 2:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/drinks");}
- case 3:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/cleardrinks");}
- case 4:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/clearalldrinks");}
- case 5:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/wine");}
- case 6:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/greeting");}
- case 7:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/modifyhat");}
- case 8:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/christmashat");}
- case 9:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/christmashatall");}
- case 10:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/snowall");}
- case 11:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/snow");}
- case 12:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/christmas");}
- case 13:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/createtree");}
- case 14:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/cleartree");}
- case 15:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/clearalltree");}
- case 16:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/createfireworks");}
- case 17:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/clearfireworks");}
- case 18:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/clearallfireworks");}
- case 19:{CallLocalFunction("OnPlayerCommandText", "is", playerid, "/fireworks");}
- }
- }
- }
- } return false;
- }
- stock IsChristmasDay(){static date[3]; getdate(date[0],date[1],date[2]);if(date[0]==date[0] && date[1]==12 && date[2]==25) return true; return false;}
- stock GetWeather(){new weather[5]; GetServerVarAsString("weather", weather, sizeof(weather)); return strval(weather);}
- /*
- * ## LEASE ATENTAMENTE PARA NO CONVERTIRSE EN LAMMER!!.: :D ##
- *
- * Estè Simple FILTERSCRIPT esta hecho especialmente para www.forum.sa-mp.com
- * NO Publicar estè FILTERSCRIPT en Otros foros de SA-MP y hacerse pasar por el creador del CODE.
- *
- * Codigo Creado Por OTACON
- *
- * CREDITOS:
- * OTACON: Realizacion y Idea de creacion del code.
- * TÙ: Modificacion libremente respetando lo mencionado ;).
- *
- * NOTA: Menos Creditos para los que me los critican.. JO'PUTAS! :D xD ;)
- *
- * Prohibido TOTALMENTE el Robo de Créditos o la
- * Publicación de este FILTERSCRIPT sin Mi Permiso.
- */
- /*
- * ## READ CAREFULLY TO AVOID BECOMING LAMMER!.: :D ##
- *
- * This simple FILTERSCRIPT is made especially for www.forum.sa-mp.com
- * DO NOT Post the FILTERSCRIPT in Other SAMP forums and impersonating the creator of the CODE.
- *
- * Code Created By OTACON
- *
- * CREDITS:
- * OTACON: Idea Making and code creation.
- * YOUR: Modification freely respecting the above ;).
- *
- * NOTE: Less Credits for those who criticize me.. JO'PUTAS! :D xD ;)
- *
- * FULLY spaces Theft Credit or
- * Publication of this FILTERSCRIPT without my permission.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement