Script Request Thread #5

PHP код:
CMD:live(playerido[])
    {
        new 
giveplayerid;
        if(
PlayerInfo[playerid][pMember] != || PlayerInfo[playerid][pLeader] != 9) return SendClientMessage(playeridCOLOR_GREY"You are not News Reporter");
        if(
PlayerInfo[playerid][pNewsSkill] < 50) return SendClientMessage(playeridCOLOR_GREY"Your News Reporter Skill is to low to talk Live with people !");
        if(
sscanf(o,"u"giveplayerid)) return SendClientMessage(playeridCOLOR_GREY,"USAGE: /live [playerid/PartOfName]");
        if(
giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playeridCOLOR_GREY," Invalid ID/Name");
        if(
giveplayerid == playerid) return SendClientMessage(playeridCOLOR_GREY"You cannot Talk Live with yourself!"); 
        if(
TalkingLive[playerid] != 255)
        {
            
SendClientMessage(playeridCOLOR_WHITE"* Live Conversation ended.");
            
SendClientMessage(TalkingLive[playerid], COLOR_WHITE"* Live Conversation ended.");
            
TogglePlayerControllable(playerid1);
            
TogglePlayerControllable(TalkingLive[playerid], 1);
            
TalkingLive[TalkingLive[playerid]] = 255;
            
TalkingLive[playerid] = 255;
            return 
1;
        }
        if(!
ProxDetectorS(5.0playeridgiveplayerid)) return SendClientMessage(playeridCOLOR_GREY,"You are too far away from that player");
        
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer));
        
format(stringsizeof(string), "* You offered %s to have a Live Conversation."giveplayer);
        
SendClientMessage(playeridCOLOR_WHITEstring);
        
format(stringsizeof(string), "* %s offered you to have a Live Conversation, type (/accept live) to accept."sendername);
        
SendClientMessage(giveplayeridCOLOR_WHITEstring);
        
LiveOffer[giveplayerid] = playerid;
        return 
1;
    } 
Reply

how can i make a check for this :

if(PlayerInfo[playerid][pJob])

i mean,how can i make

Код:
CMD:kosactrave(playerid,params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 4.0, 1808.4081,-1435.0905,13.4297))
    {
        // i need this,if player doesent have a job,then
        {
        // i need this,if player doesent have a job,then employ him..
        SendClientMessage(playerid,-1,""CRVENA"Cestitamo: "ZUTA"Uspjesno ste se zaposlili kao "ZELENA"Kosac Trave")
        }
        else SendClientMessage(playerid,-1,""CRVENA"Error: "ZUTA"Vec ste zaposleni");// You are already employed
    }
    else SendClientMessage(playerid,-1,""CRVENA"Error: "ZUTA"Niste blizu mjesta za zaposljavanje.") // It says you are not near place for employment
    return 1;
}
Reply

Can someone send me a Dynamic Faction System which allows the player to make a faction with the following types of factions:
1 Police dept
2 Medics
3 Fire Department
4 Prison Guard
5 Gang
6 Bus Company
7 Government
8 Hitman
10 National Guard

I want the commands to look something like:

[Faction Name]: Faction Commands

Also, I want it to be able to be Strcmp and Noob Freindly
Reply

I'm tring to create a createhouse function & command ( using strcmp. )
Here are my enums,
pawn Код:
enum hInfo
{
    Float:hEntrancex,
    Float:hEntrancey,
    Float:hEntrancez,
    Float:hExitx,
    Float:hExity,
    Float:hExitz,
    hOwner[MAX_PLAYER_NAME],
    hDiscription[MAX_PLAYER_NAME],
    hValue,
    hDate,
    hLevel,
    hWorld,
    hOutWorld,
    hOutInt,
};
I can't understand how, I can eaither make it in a function to make it easier or in a command, but can't understand how >.>.
Reply

I don't like making people do things for me but this is now too much for my tired brains, It's always giving error and stuff about undefined things or definition matches.

So my request is, I need this thing converted from SII to y_ini...

Код:
forward LoadGangs();
public LoadGangs()
{
    printf("Loading Gangs...");
    for(new i = 1; i < MAX_GANGS; i++)
    {
        format(GangStat[i][GangFile], 60, "Gangs/Gang %d.ini", i);
        if(INI_Open(GangStat[i][GangFile]))
	    {
           INI_String(GangStat[i][Leader],"Leader",60);
           INI_String(GangStat[i][GangName],"Name",60);
           INI_String(GangStat[i][MOTD],"MOTD", 128);

           INI_String(GangStat[i][Rank1],"Rank1",60);
           INI_String(GangStat[i][Rank2],"Rank2",60);
           INI_String(GangStat[i][Rank3],"Rank3",60);
           INI_String(GangStat[i][Rank4],"Rank4",60);
           INI_String(GangStat[i][Rank5],"Rank5",60);
           INI_String(GangStat[i][Rank6],"Rank6",60);

           GangStat[i][Skin1] = INI_Int("Skin1");
           GangStat[i][Skin2] = INI_Int("Skin2");
           GangStat[i][Skin3] = INI_Int("Skin3");
           GangStat[i][Skin4] = INI_Int("Skin4");
           GangStat[i][Skin5] = INI_Int("Skin5");
           GangStat[i][Skin6] = INI_Int("Skin6");
           GangStat[i][fSkin] = INI_Int("fSkin");

           GangStat[i][Members] = INI_Int("Members");

           GangStat[i][Color] = INI_Int("Color");

           INI_Save();
           INI_Close();
        }
    }
    printf("Gangs Loaded.");
	return 1;
}

stock SaveGang(gangid)
{
    format(GangStat[gangid][GangFile], 20, "Gangs/Gang %d.ini", gangid);
    if(INI_Open(GangStat[gangid][GangFile]))
    {

        INI_WriteString("Leader", GangStat[gangid][Leader]);
		INI_WriteString("Name", GangStat[gangid][GangName]);
		INI_WriteString("MOTD", GangStat[gangid][MOTD]);

		INI_WriteString("Rank1", GangStat[gangid][Rank1]);
		INI_WriteString("Rank2", GangStat[gangid][Rank2]);
		INI_WriteString("Rank3", GangStat[gangid][Rank3]);
		INI_WriteString("Rank4", GangStat[gangid][Rank4]);
		INI_WriteString("Rank5", GangStat[gangid][Rank5]);
		INI_WriteString("Rank6", GangStat[gangid][Rank6]);

		INI_WriteInt("Skin1", GangStat[gangid][Skin1]);
		INI_WriteInt("Skin2", GangStat[gangid][Skin2]);
		INI_WriteInt("Skin3", GangStat[gangid][Skin3]);
		INI_WriteInt("Skin4", GangStat[gangid][Skin4]);
		INI_WriteInt("Skin5", GangStat[gangid][Skin5]);
		INI_WriteInt("Skin6", GangStat[gangid][Skin6]);
		INI_WriteInt("fSkin", GangStat[gangid][fSkin]);

		INI_WriteInt("Members", GangStat[gangid][Members]);

		INI_WriteInt("Color", GangStat[gangid][Color]);

		INI_Save();
		INI_Close();
    }
	return 1;
}
Reply

Is there any possibility for a function that does this?:
Test = CreateDynamicSquare(from icognito)
And then do this: IsPlayerInLeftSideOfSquare(playerid,test)
Is that possible?
Reply

whats the best freeroam gamemode with no bugs?! if there is please tell i really need it
Reply

Quote:
Originally Posted by firechief
Посмотреть сообщение
I'm lookin for this yellow light on the back of the car, cannot find it??
http://www.*******.com/user/luckyclo.../0/vcLZLTJ2_I8
Nobody knows?
Reply

Alright, I Have the classes done,and now i wanna create GangZones
So yeah, il add it on "GameModeinIt " right?
But,i want it like this..
If a team kills 3Members of any other TEAM (Wont work ,if the turf is owned by your Gang)
the turf starts flashing RED on radar,only for The PEOPLE Taking it OVER and the team which owns the TURF,so they get alerted on radar,and gets their backup.
also it will send a message to the team which owns the turf,saying that Turf "name" is getting attacked.
Atleast 1member will have to survive on the TAKEOVER Turf, after the timing ends,the turf color changes to the team who tookover it.
give me some tips on How to script this,and il add some tips from my knowledge,giving +1REP to anyone who is HELPFUL, thank you! MUCH LOVE!!
Reply

I would like to know how do i make a script like

/makeswat
/makeCSI
/makeundercover
/makeHSIU

/HSIUonline
/undercoveronline
/CSIonline
/SWATonline

/removeswat
/removeCSI
/removeundercover
/removeHSIU

and so if you got SWAT rights, you can drive cars that chosen to swat online,

And those commands can be used by police chief on normal members or PD members.

can someone please help me?

I can pay for the scripts but then you would need to make commands too, just few and i would pay for it.
Reply

anyone have k-functions include? please tell
Reply

Show me the error lines plz

And thnks for help mr spongebob rep+
Reply

I want a script for RolePlay servers that allowes you to rob a 24-7 or a burger shot etc.
Like /rob and you get some ammount of money etc.


I also want a script that allowes you to smuggle (/smuggle) guns from some specified areas that i choose for an ammount of money.BUT ONLY FOR THE FACTION I WANT.
Reply

pawn Код:
C:\DOCUME~1\SANDER~1\Desktop\THE_EC~1.8\GAMEMO~1\TE.pwn(17320) : error 010: invalid function or declaration
C:\DOCUME~1\SANDER~1\Desktop\THE_EC~1.8\GAMEMO~1\TE.pwn(17323) : error 021: symbol already defined: "SetPlayerSkin"
C:\DOCUME~1\SANDER~1\Desktop\THE_EC~1.8\GAMEMO~1\TE.pwn(17325) : error 021: symbol already defined: "GivePlayerWeapon"
C:\DOCUME~1\SANDER~1\Desktop\THE_EC~1.8\GAMEMO~1\TE.pwn(17328) : error 010: invalid function or declaration
C:\DOCUME~1\SANDER~1\Desktop\THE_EC~1.8\GAMEMO~1\TE.pwn(17335) : warning 203: symbol is never used: "CopSkinsL1"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
line 17320 - if (strcmp("/police", cmdtext, true) == 0)
line 17323 - SetPlayerSkin(playerid,CopSkinsL1[random(sizeof(CopSkinsL1))]);
line 17325 - GivePlayerWeapon(playerid, 23, 20); //slot 2
line 17328 - return 1;
line 17335 - i have 17334 line in Skript idk wtf is this:d
Reply

I would like to request a walkie talkie system for a RPG server in which we'd buy the walkie talkie from a 24/7 and then set its frequency so that people could talk on it.
Thanks!
Reply

Too janx, ill take a look at it in 2 or 4 days, since i have loads of schoolwork and turnin on my pc will loose too much time, so i have to post this via ipod, anyway maybe chante the if strcmp thing into the form that u use in ur other commands...
Also show me entire onplayercommandtext callback plz
Reply

Dj system [music on starting class section ]
Reply

Can someone link me to a good prision roleplay still avaiable please
Reply

I need a command so tat only player's of my choice can get /taze command.....

waiting for your reply.....
Reply

I need a car dealership
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)