Re: Script Request Thread #3
#21

no fuck it to many servers any ways
Reply
#22

Quote:
Originally Posted by sora_watson
no fuck it to many servers any ways
Have it your way then.
Reply
#23

Hello Guys!

Is here anyone scripther that can make /bk command just for Cop Team

so the /bk command should be for ''Backup''

it should look like this:

When Anyone from TEAM COP write /bk it should send message rurple color ---> send message to all COP Team

''Officer (his name) Need a Backup, Now!''

and to the cop who use this command his color change to purple for 30 seconds

i hope someone can do this for me cuz i was trying to make this alone but i had problems with this timer ...

Ty For any help and to scripter who will make this

now i go sleep

bb

Kljukec
Reply
#24

Easy
Код:
if(strcmp(cmdtext, "/bk", true) == 0)
	{
		for (new i = 0; i < MAX_PLAYERS; i++)
		{
			if(GetPlayerTeam(i) == TEAM_COP)
			{
				new name[255];
 				GetPlayerName(playerid, name, 255);
				new string[256];
				format(string,256,"Officier %s need Backup",name);
				SendClientMessageToAll(COLOR_BLUE,string);
				SetPlayerColor(playerid,0xAB23B6FF);
				SetTimer("ChangeColor",30000,0);
			}
		}
	}

forward ChangeColor(playerid);

public ChangeColor(playerid);
{
	SetPlayerColor(playerid,0xFFFFF); // Or Any Color You Want
}
Reply
#25

Quote:
Originally Posted by Martin_Smith
Quote:
Originally Posted by UberSocks
Looking for someone to script a few functions for me relating to player death.

When a player dies, they will be forced to do an action which depicts them lying on the ground. They will remain in that spot until they type /acceptdeath. Once the player has typed /acceptdeath, they will be forced to stay in hospital for 1 minute 30 seconds, where they will respawn in the designated area, which will be given within the function. Whilst in hospital, a camera view of LS hospital will be shown.

Another command that can be used is /revive, which can be used by anyone at this stage (I will change the permissions later).

Please leave the re-spawn positions, camera angles blank, as I will fill them in.

Your help is much appreciated.

Any other information is required, PM please. Thank you.
I can do this, although im not a Pro scripter, so how about if i make it so that If the players HP gets below 10 or 5 or somthing..Then they become Froze on floor ...At wich point someone can /revive or /accept death.... although if its a RP server i recommened doing somthing like /callAmbulance, so this makes it seem RP.... soo how does that sound?
The call function is fine, I've already done a working 911 call system. The /revive command doesn't need any restrictions as to who can use it yet, I can fix that. And if the HP gets below 5, that'd be great. Do you have MSN?
Reply
#26

Hello !
I have a problem, I created this code:
Код:
  
 new string[256],pname[MAX_PLAYER_NAME],ip[20];
  GetPlayerName(playerid, pname, sizeof(pname));
  GetPlayerIp(playerid,ip,sizeof(ip));
  
  format(string,sizeof(string),"players/%s.txt", pname);
  	if(!dini_Exists(string))
	{
	dini_Create(string);
	print("\n File Created");
	}
 	dini_Set(string,"Ip",ip[playerid]);
In the line "Ip" Recorded IP player, BUT: Every time a player connect IP rewritten, must be seen to all its IP through which it Connect
Help me please.
Reply
#27

I've been trying to make my own basic talk name-change. Which isn't working out.
I had it:
[ ! ] Abernethy (ID:0) says: <The text never shown up here but I want it too>
I put it OnPlayerText couldn't stop the stock "Abernethy: <TEXT>" so I returned 0. Anyways.
Can somebody make it for me?
Reply
#28

pawn Код:
public OnPlayerText(playerid,text[])
{
    new string[128],name[24];
    GetPlayerName(playerid,name,24);
    format(string,128,"[!] %s (ID:%d)says:%s",name,playerid,text);
    SendClientMessageToAll(COLOR,string);
    return 0;
}
Try that.
Reply
#29

Hey can i have a command for showing your current position (X,Y,Z) in game thanks.
Reply
#30

Quote:
Originally Posted by Fabio11
Easy
Код:
if(strcmp(cmdtext, "/bk", true) == 0)
	{
		for (new i = 0; i < MAX_PLAYERS; i++)
		{
			if(GetPlayerTeam(i) == TEAM_COP)
			{
				new name[255];
 				GetPlayerName(playerid, name, 255);
				new string[256];
				format(string,256,"Officier %s need Backup",name);
				SendClientMessageToAll(COLOR_BLUE,string);
				SetPlayerColor(playerid,0xAB23B6FF);
				SetTimer("ChangeColor",30000,0);
			}
		}
	}

forward ChangeColor(playerid);

public ChangeColor(playerid);
{
	SetPlayerColor(playerid,0xFFFFF); // Or Any Color You Want
}
ty .. But errors ?

Код:
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(680) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(680) : error 017: undefined symbol "ChangeColor"
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(682) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Administrator\Desktop\Server\gamemodes\RealityCNR.pwn(682) : error 017: undefined symbol "ChangeColor"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
	if(strcmp(cmdtext, "/bk", true) == 0)
	{
	for (new i = 0; i < MAX_PLAYERS; i++)
	{
	if(GetPlayerTeam(i) == TEAM_COP)
	{
	new name[255];
 	GetPlayerName(playerid, name, 255);
	new string[256];
	format(string,256,"Officier %s need Backup, Now! He is Marked Purple on the map!",name);
	SendClientMessageToAll(COLOR_BLUE,string);
	SetPlayerColor(playerid,0xAB23B6FF);
	SetTimer("ChangeColor",30000,0);
	return 1;
	}
	}
}

forward ChangeColor(playerid); ---> line 680

public ChangeColor(playerid); ---> line 682
{
	SetPlayerColor(playerid,0x800080AA); // Or Any Color You Want
}
can u fix ? please
Reply
#31

I modified the Stunt'n'drift'n'race'n'pwn script, so that is from there.
I tried to follow this: https://sampwiki.blast.hk/wiki/AdminSkins but it shows that skin is for admins in every skin.
Reply
#32

Hello, I am currently looking for some scripters for this new GameMode me and my friend are making. We are planning to get on "Hosted List" soon and maybe if possible "Official List" We have a blank script we started with no GodFather crap and we are hosting the server on "ServerFFS" its a great stable host and we just need free,Good scripters to help us!

Contact : Dacolaz@hotmail.com or gnrsamp@hotmail.com We are both owners.
We also have a ventrilo. Message us on MSN for the info.

My name is Mike
And The second owners name is Arsham

Arsham will provide money for scripting at one point...

Please contact us!
Reply
#33

I can give help here and there. I don't have time to do it full time. I don't like using msn or vent but if you just message me on here I can fix a script or write you one depending on what it is.
Reply
#34

Could you make a Filterscript or something, which gives you the ability to make Houses, and Business's and Factions ingame, because that'd be aLOT of help to people who cannot script, coz they can just do it all Ingame

Thanks
Reply
#35

Quote:
Originally Posted by Seif_ [adream-rp.com
]
Quote:
Originally Posted by Backwardsman97
Why do you do this twice?

pawn Код:
else if(classid==yanzl){
The original SDRP v2 script is based on a script by a guy called WharfShrimp who scripted it back in 0.1 days. And well, as you can see, he wasn't very experienced but enough to make a fun script. SDRP v2 is a huge edit of it. He gave me the script and permission to edit it.
where the hell is WhardShrimp by now is he doing stuff on samp he's the one that make me start scripting back in the mta0.5:GTAiii days !
Reply
#36

Why doesn't this work?

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(pClass[playerid] == yanzl && (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid)))
  {
    SendClientMessage(playerid,COLOR_RED,"This skin only for admins!");
    return 0;
  }
  return 1;
}
I followed https://sampwiki.blast.hk/wiki/AdminSkins and added in PlayerInfo[playerid][pAdminLevel] >= 1.
I'm level 5 admin and it doesn't let mee choose it.
Reply
#37

Quote:
Originally Posted by Yanzl
Why doesn't this work?

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(pClass[playerid] == yanzl && (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid)))
  {
    SendClientMessage(playerid,COLOR_RED,"This skin only for admins!");
    return 0;
  }
  return 1;
}
I followed https://sampwiki.blast.hk/wiki/AdminSkins and added in PlayerInfo[playerid][pAdminLevel] >= 1.
I'm level 5 admin and it doesn't let mee choose it.
try that way ...

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(pClass[playerid] == yanzl && (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid)))
  {

    return 1;
  }
  else
  {
    SendClientMessage(playerid,COLOR_RED,"This skin only for admins!");
    return 0;
  }
  return 1;
}
Reply
#38

Ok, I tried that, now I can login woth admin skin, but not other skins, it's doing the same, just switched admin and normal skin.
And also there is a unreacheable code on the last line with return 1;

I'm thinking PlayerInfo[playerid][pAdminLevel] >= 1 isn't working right
Reply
#39

then
try that way ...
was my mistake ,... did not try it before post it ...

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
  if(pClass[playerid] == yanzl && (PlayerInfo[playerid][pAdminLevel] >= 1 || IsPlayerAdmin(playerid)))
  {

    return 1;
  }
  else if(pClass[playerid] == yanzl)
  {
    SendClientMessage(playerid,COLOR_RED,"This skin only for admins!");
    return 0;
  }
  return 1;
}

Reply
#40

That worked, thanks alot.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)