Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:zspeed(playerid,params[])
- {
- new Float:tmp;
- if(sscanf(params,"f",tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zspeed [speed]");
- Zspeed=tmp;
- return 1;
- }
- CMD:ztimerspeed(playerid,params[])
- {
- new Float:tmp;
- if(sscanf(params,"f",tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /ZTimerSpeed [timer speed]");
- ZTimerSpeed=tmp;
- cmd_zstop(playerid,params);
- cmd_zstart(playerid,params);
- return 1;
- }
- CMD:zo(playerid,params[])
- {
- new Float:pX,Float:pY,Float:pZ,Float:Ang;
- GetPlayerPos(playerid,pX,pY,pZ);
- GetPlayerFacingAngle(playerid,Ang);
- pX=pX+3.0*floatsin(-Ang,degrees);
- pY=pY+3.0*floatcos(-Ang,degrees);
- pZ=pZ+0.7;
- CrearZombie(pX,pY,pZ,Ang+180.0);
- return 1;
- }
- CMD:zstart(playerid,params[])
- {
- if (NOFZombies>0)
- {
- new id;
- if(sscanf(params,"d",id)) return SendClientMessage(playerid, 0xFFFFFFAA, "Uzyj/ cos [playerid]");
- if (!IsPlayerConnected(id))
- {
- SendClientMessage(playerid, 0xFFFFFFAA, "That player is not conected!");
- return 1;
- }
- if (TimerAtaca!=-1){KillTimer(TimerAtaca);}
- for (new j=0;j<TOTALZombies;j++){zombie[j][target]=id;}
- TimerAtaca=SetTimer("zombieAtaca",ZTimerSpeed,1);
- return 1;
- }
- return 1;
- }
- CMD:zstop(playerid, params[])
- {
- if (NOFZombies>0)
- {
- if (TimerAtaca!=-1)
- {
- KillTimer(TimerAtaca);
- }
- for (new j=0;j<TOTALZombies;j++)
- {
- if (zombie[j][undead])
- {
- StopObject(zombie[j][head]);
- StopObject(zombie[j][torso]);
- StopObject(zombie[j][rArm]);
- StopObject(zombie[j][lArm]);
- StopObject(zombie[j][rLeg]);
- StopObject(zombie[j][lLeg]);
- }
- }
- return 1;
- }
- SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombies");
- return 1;
- }
- CMD:zclean(playerid, params[])
- {
- cleanZombies();
- SendClientMessage(playerid, 0xFFFFFFAA, "There are no zombies anymore!");
- return 1;
- }
- CMD:ttt(playerid, params[])
- {
- new tmp[30], hora; // to musi byc tablica skoro pozniej z tego tekst wysylasz (nie float)
- if(sscanf(params,"d",hora)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /ttt ");
- SetWorldTime(hora);
- format(tmp, sizeof(tmp), "Ahora la hora es: %d", hora);
- SendClientMessage(playerid, 0xFFFFFFAA, tmp);
- return 1;
- }
- CMD:zcantzombies(playerid, params[])
- {
- new tmp;
- if(sscanf(params,"d",tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zcantzombies [ilosc]");
- cleanZombies();
- TOTALZombies = tmp;
- return 1;
- }
- CMD:ambient(playerid, params[])
- {
- SetWorldTime(0);
- SetWeather(8);
- return 1;
- }
- CMD:apocalipsion(playerid, params[])
- {
- apocalipsis = true;
- for (new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- QuitarArmasZombie(i);
- money[playerid]=GetPlayerMoney(playerid);
- ResetPlayerMoney(playerid);
- }
- }
- scorez=0;
- scorep=0;
- SetWorldTime(0);
- SetWeather(8);
- GameTextForAll("~r~apocalipsis ~w~mode:~b~on~w~! ~n~~n~~n~~g~ZOMBIES~w~!!!",5000,5);
- if (TimerAPO!=-1){KillTimer(TimerAPO);}
- TimerAPO = SetTimer("attacknearest",10000,1);
- if (TimerAtaca!=-1){KillTimer(TimerAtaca);}
- TimerAtaca=SetTimer("zombieAtaca",ZTimerSpeed,1);
- while (NOFZombies<TOTALZombies)CreateRandomZombie();
- attacknearest();
- return 1;
- }
- CMD:apocalipsioff(playerid, params[])
- {
- if (apocalipsis)
- {
- new tmp[255];
- for (new i=0;i<MAX_PLAYERS;i++)if(IsPlayerConnected(i)){DevolverArmasZombie(i);GivePlayerMoney(i,money[i]);}
- format(tmp,255,"~w~SCORE ~r~Zombies~w~: %d ~b~Humans~w~: %d~n~~n~~r~apocalipsis ~w~mode:~b~off~w~",scorez,scorep);
- GameTextForAll(tmp,6000,4);
- apocalipsis = false;
- SetWorldTime(12);
- SetWeather(7);
- cleanZombies();
- }
- if (TimerAPO!=-1){KillTimer(TimerAPO);}
- if (TimerAtaca!=-1){KillTimer(TimerAtaca);}
- return 1;
- }
- CMD:vaiven(playerid, params[])
- {
- new Float:tmp;
- if(sscanf(params,"f",tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /vaiven [angulo]");
- vaiven=tmp;
- return 1;
- }
- CMD:zSetWeaponSet(playerid, params[])
- {
- new tmp[50],idgun;
- if(sscanf(params,"d",idgun)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zsetweaponset [gun]");
- if (idgun<sizeof(set))
- {
- format(tmp,sizeof(tmp),"Please pick a number beetwen 0-%d",sizeof(set));
- SendClientMessage(playerid, 0xFFFFFFAA, tmp);
- return 1;
- }
- setNumber=idgun;
- return 1;
- }
- CMD:zGetWeapon(playerid, params[])
- {
- new tmp;
- if(sscanf(params,"d",tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zgetweapon [weap]");
- GivePlayerWeapon(playerid,tmp, 10000);
- return 1;
- }
- CMD:zGiveWeaponforall(playerid, params[])
- {
- new tmp;
- if(sscanf(params,"d",tmp)) return SendClientMessage(playerid, 0xFFFFFFAA, "USE: /zgiveweaponforall ");
- for (new i=0;i<MAX_PLAYERS;i++){if(IsPlayerConnected(i))
- GivePlayerWeapon(i,tmp,10000);}
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment