09.05.2013, 03:06
I need /vstorage system(dialog) scripts
And also /toggc (toggle global chat) and /g text to talk
Can someone help me?
And also /toggc (toggle global chat) and /g text to talk
Can someone help me?
I need something that kicks/bans a player that says a IP in the chat.
|
stock DetectAdv(string[])
{
new Count;
if (!strfind(string, "www.", false) || !strfind(string, "http://", false) || !strfind(string, ".com", false) || !strfind(string, ".net", false)
|| !strfind(string, ".de", false) || !strfind(string, ".org", false) || !strfind(string, ".smfnew", false) || !strfind(string, ".tk", false))
return true;
for(new i; string[i] != 0; ++i)
{
if(('0' <= string[i] <= '9') || string[i] == '.' || string[i] == ':')
{
if((string[i] == '.') && (string[i + 1] != '.') && ('0' <= string[i - 1] <= '9'))
{
++Count;
}
continue;
}
}
return (Count > 2);
}
public OnPlayerText(playerid, text[])
{
if(DetectAdv(text)) return Kick(playerid), 0;
return 1;
}
Hello, I would like to request a simple FS, since I'm a beginner in the scripting of such a things I would like someone to make it for me.I'm talking about a simple /spawn command.Which can be used to save the player's IG position, and whenever he dies or logs in the server to spawn back onto his spawn position.
Thanks in advance! |
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(newinteriorid != 0)
{
TogglePlayerControllable(playerid, false);
SetTimerEx("HoldInteriorChange", 3000, false, "d", playerid);
GameTextForPlayer(playerid, "~w~Loading interior... please wait!", 3000, 3);
}
return 1;
}
forward HoldInteriorChange(playerid);
public HoldInteriorChange(playerid)
{
TogglePlayerControllable(playerid, true);
return 1;
}
#include <a_samp> #include <streamer> #include <ZCMD> new Reja1; new Reja2; public OnGameModeInit() { Create3DTextLabel("use /gate1",0xFFFF00FF,482.4337,1764.8003,2317.5798,5,0); Create3DTextLabel("use /gate2",0xFFFF00FF,489.0119,1725.7668,2317.5898,5,0); CreateDynamicObject(19378, 480.28, 1750.11, 2319.59, 0.00, 90.00, 0.00); CreateDynamicObject(14791, 486.17, 1746.17, 2321.65, 0.00, 0.00, 0.00); CreateDynamicObject(19378, 490.77, 1750.11, 2319.59, 0.00, 90.00, 0.00); CreateDynamicObject(19378, 490.77, 1740.56, 2319.59, 0.00, 90.00, 0.00); CreateDynamicObject(19378, 480.29, 1740.56, 2319.59, 0.00, 90.00, 0.00); CreateDynamicObject(3452, 481.22, 1726.82, 2322.31, 0.00, 0.00, 0.00); CreateDynamicObject(3452, 489.91, 1763.81, 2322.30, 0.00, 0.00, 180.00); CreateDynamicObject(19380, 474.98, 1740.71, 2324.88, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 474.98, 1731.09, 2324.42, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 474.97, 1721.49, 2325.22, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 474.98, 1750.33, 2324.40, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 474.98, 1759.95, 2324.38, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 474.98, 1769.56, 2327.20, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 496.07, 1740.68, 2324.88, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 496.07, 1731.05, 2324.40, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 496.07, 1721.42, 2324.54, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 496.08, 1750.23, 2324.88, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 496.07, 1759.74, 2324.40, 0.00, 0.00, 0.00); CreateDynamicObject(19380, 496.07, 1769.34, 2325.20, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 496.08, 1720.86, 2317.72, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 496.09, 1724.05, 2317.72, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 496.09, 1727.24, 2317.72, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 466.33, 1724.65, 2318.31, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 466.33, 1721.46, 2318.31, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 466.34, 1718.27, 2318.31, 0.00, 0.00, 0.00); CreateDynamicObject(19381, 480.27, 1722.57, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 490.76, 1722.57, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 490.74, 1732.20, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 480.25, 1732.20, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 480.31, 1741.80, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 490.80, 1741.83, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 490.70, 1751.42, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 480.21, 1751.43, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 480.29, 1761.03, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 490.79, 1761.03, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 490.76, 1770.63, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19381, 480.27, 1770.65, 2328.09, 0.00, 90.00, 0.00); CreateDynamicObject(19355, 475.02, 1769.71, 2318.23, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 475.02, 1766.51, 2318.23, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 475.03, 1763.32, 2318.23, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 504.79, 1765.93, 2318.21, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 504.79, 1769.13, 2318.21, 0.00, 0.00, 0.00); CreateDynamicObject(19355, 504.79, 1772.32, 2318.21, 0.00, 0.00, 0.00); CreateDynamicObject(984, 476.79, 1742.25, 2320.30, 0.00, 0.00, 359.82); CreateDynamicObject(984, 483.17, 1735.85, 2320.30, 0.00, 0.00, 90.04); CreateDynamicObject(983, 496.32, 1735.85, 2320.36, 0.00, 0.00, 90.00); CreateDynamicObject(983, 476.83, 1751.62, 2320.36, 0.00, 0.00, 0.00); CreateDynamicObject(984, 488.11, 1754.79, 2320.30, 0.00, 0.00, 90.04); CreateDynamicObject(983, 497.72, 1754.80, 2320.34, 0.00, 0.00, 90.00); CreateDynamicObject(1499, 475.06, 1744.78, 2319.67, 0.00, 0.00, 90.18); CreateDynamicObject(2115, 491.89, 1747.18, 2319.66, 0.00, 0.00, 90.59); CreateDynamicObject(2115, 491.82, 1743.94, 2319.68, 0.00, 0.00, 90.59); CreateDynamicObject(2636, 493.41, 1743.92, 2320.30, 0.00, 0.00, 0.00); CreateDynamicObject(2636, 493.41, 1744.85, 2320.32, 0.00, 0.00, 0.00); CreateDynamicObject(2636, 493.35, 1748.19, 2320.29, 0.00, 0.00, 0.00); CreateDynamicObject(2636, 493.50, 1747.04, 2320.31, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 483.34, 1741.51, 2319.66, 0.00, 0.00, 178.89); CreateDynamicObject(1810, 483.85, 1750.28, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 485.34, 1750.29, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 486.75, 1750.28, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 488.39, 1750.26, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 488.39, 1751.24, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 486.75, 1751.26, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 485.34, 1751.29, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 483.85, 1751.28, 2319.65, 0.00, 0.00, 0.00); CreateDynamicObject(1810, 484.68, 1741.50, 2319.67, 0.00, 0.00, 178.89); CreateDynamicObject(1810, 486.11, 1741.50, 2319.66, 0.00, 0.00, 178.89); CreateDynamicObject(1810, 487.58, 1741.50, 2319.67, 0.00, 0.00, 178.89); CreateDynamicObject(1810, 483.34, 1740.53, 2319.66, 0.00, 0.00, 178.89); CreateDynamicObject(1810, 484.68, 1740.54, 2319.67, 0.00, 0.00, 178.89); CreateDynamicObject(1810, 486.11, 1740.54, 2319.66, 0.00, 0.00, 178.89); CreateDynamicObject(1810, 487.58, 1740.52, 2319.67, 0.00, 0.00, 178.89); CreateDynamicObject(2115, 480.89, 1744.28, 2319.68, 0.00, 0.00, 90.59); CreateDynamicObject(2115, 480.83, 1746.98, 2319.68, 0.00, 0.00, 90.59); CreateDynamicObject(2636, 479.19, 1748.09, 2320.31, 0.00, 0.00, 179.72); CreateDynamicObject(2636, 479.17, 1746.92, 2320.31, 0.00, 0.00, 179.72); CreateDynamicObject(2636, 479.14, 1745.39, 2320.31, 0.00, 0.00, 179.72); CreateDynamicObject(2636, 479.23, 1744.28, 2320.31, 0.00, 0.00, 179.72); CreateDynamicObject(1985, 492.99, 1767.09, 2319.94, 0.00, 0.00, 0.00); CreateDynamicObject(1985, 474.29, 1723.05, 2319.94, 0.00, 0.00, 0.00); CreateDynamicObject(19148, 475.14, 1745.56, 2326.06, -11.00, 0.00, 277.00); CreateDynamicObject(19148, 475.16, 1748.57, 2326.06, -11.00, 0.00, 277.00); Reja1 = CreateObject(971, 477.8161, 1764.2668, 2316.3870, 0.00, 0.00, 0.00); Reja2 = CreateObject(971, 493.3242, 1726.3136, 2316.3870, 0.00, 0.00, 0.00); return 1; } forward Cerrar(); public Cerrar() { MoveObject(Reja1, 477.8161, 1764.2668, 2316.3870,3.0); return 1; } forward Cerrar1(); public Cerrar1() { MoveObject(Reja2, 493.3242, 1726.3136, 2316.3870,3.0); return 1; } CMD:gate1(playerid, params[]) { if (IsPlayerInRangeOfPoint(playerid, 2.0,482.4337,1764.8003,2317.5798)) { MoveObject(Reja1, 473.2233, 1764.2580, 2316.3870,3.0); SetTimer("Cerrar",5000,0); } return 1; } CMD:gate2(playerid, params[]) { if (IsPlayerInRangeOfPoint(playerid, 2.0,489.0119,1725.7668,2317.5898)) { MoveObject(Reja2, 497.9149, 1726.3287, 2316.3870,3.0); SetTimer("Cerrar1",5000,0); } return 1; } //comando para ir al salon CMD:arena(playerid, params[]) { SetPlayerInterior(playerid,1); SetPlayerPos(playerid, 476.1840,1745.5935,2320.6760); return 1; }
Hey Guys,I'm Running a Gang,I need Scripts for it to add my maps to it...
I've created a Small Island for my Gang,But I don't know How to add it,and in the server i'm playing i need cmds like /SALganginfo,/SALgangapply,/SALgangAccept,/SALgangAdmins,/SALgangRemove...Something More Like this,Anyone help me in this please, |
I need any filterscript .. to give score for making anything .. Like Kill someone = 1 score .. i need like that or different from it but it gives more scores like 10 score / one Job or Kill or anything
|
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, GetPlayerScore(killerid)+10); //Sets the killer's score.
GivePlayerMoney(killerid, GetPlayerMoney(killerid)+1); //If you want to set his money as well.
return 1;
}