Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* FS FEITO POR FÁBIO STRALIOTI, NÃO RETIRE OS CRÉDITOS */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- #if defined FILTERSCRIPT
- new bool:cf[MAX_PLAYERS];
- new stralioti[128];
- public OnFilterScriptInit()
- {
- print("Eu sou o cara do momento, FABINHO LIMDO");
- return 1;
- }
- public OnPlayerConnect(playerid) {
- SendClientMessage(playerid, -1,"Este Servidor usa o FS DE CF feito por: Fábio Stralioti");
- SendClientMessage(playerid, -1,"Para ver os comandos use: /comandosfs");
- return 1;
- }
- public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
- {
- for(new i; i <GetPlayerPoolSize() + 1; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(cf[i])
- {
- static Float:vida;
- GetPlayerHealth(damagedid, vida);
- SetPlayerArmour(damagedid, (vida-amount));
- SetPlayerHealth(damagedid, (vida-amount));
- }
- }
- }
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 123)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerPos(playerid, -1111.6626,-888.2189,74.5799);
- }
- if(listitem == 1)
- {
- SetPlayerPos(playerid, 469.8008,-1112.6299,27.8615);
- }
- if(listitem == 2)
- {
- SetPlayerPos(playerid, -391.9537,-2781.9492,64.6013);
- }
- if(listitem == 3)
- {
- SetPlayerPos(playerid, -2595.7278,-2123.5432,31.0957);
- }
- }
- }
- return 1;
- }
- CMD:locaiscf(playerid) {
- ShowPlayerDialog(playerid, 123, DIALOG_STYLE_LIST, "Locais","Local 1\nLocal 2\nLocal 3\nLocal 4", "Selecionar", "Cancelar");
- return 1;
- }
- CMD:prepararcf(playerid) {
- for(new i; i <GetPlayerPoolSize() + 1; i++)
- {
- SetPlayerHealth(i, 100);
- SetPlayerArmour(i, 100);
- GivePlayerWeapon(i, 46, 1);
- SetPlayerVirtualWorld(i, 2);
- cf[i] = true;
- }
- format(stralioti, sizeof(stralioti), "O %s setou todos para CF", nome(playerid));
- SendClientMessageToAll(-1, stralioti);
- return 1;
- }
- CMD:saircf(playerid) {
- for(new i; i <GetPlayerPoolSize() + 1; i++)
- {
- cf[i] = false;
- SpawnPlayer(i);
- SetPlayerArmour(i, 0);
- SetPlayerHealth(i, 100);
- SetPlayerVirtualWorld(i, 0);
- }
- format(stralioti, sizeof(stralioti), "O %s desetou todos do CF", nome(playerid));
- SendClientMessageToAll(-1, stralioti);
- return 1;
- }
- CMD:comandosfs(playerid) {
- SendClientMessage(playerid, -1,"------------[COMANDOS]------------");
- SendClientMessage(playerid, -1,"/locaiscf");
- SendClientMessage(playerid, -1,"/prepararcf");
- SendClientMessage(playerid, -1,"/saircf");
- return 1;
- }
- nome(playerid) {
- new nomee[MAX_PLAYER_NAME];
- GetPlayerName(playerid, nomee, sizeof(nomee));
- return nomee;
- }
- #else
- #endif
Advertisement
Add Comment
Please, Sign In to add comment