You need some items before you can get a skin -
davelord - 22.02.2011
Hey, I want to create a fs that when you want a gang skin, you need a couple of items first. For example:
To get a grove skin, you need: green pants, green shirt, green RAG [ wich can only be given by a certain person who got premissions to give it ], green hat
When you got these items, you can type: /creategreenclothes, then you need to wait 30 seconds (you will be frozen), and then you get the grove skin. You will keep the items you needed to make the skin, but you cant give it. The clothes could be seen by /clothingiventory
Thanks, and I hope you can help me with this!
Re: You need some items before you can get a skin -
maramizo - 22.02.2011
And who has the permissions?
Re: You need some items before you can get a skin -
maramizo - 22.02.2011
****** he said he wants it as a filterscript.
It's simple to code a script to give these items and make a GreenRag[playerid] = 0 when spawn etc.
I think you understand what I mean?
Re: You need some items before you can get a skin -
davelord - 22.02.2011
Yeah, I do. But I'm not sure how to create it though.
Re: You need some items before you can get a skin -
jameskmonger - 22.02.2011
Quote:
Originally Posted by maramizo
forward GreenRag = 0
|
And you're seriously offering to script for others?
Re: You need some items before you can get a skin -
maramizo - 22.02.2011
Well I'm not really on the mood to make it but here's how it should be in general.
new GreenRag[MAX_PLAYERS]
new GreenPants[MAX_PLAYERS] ... etc.
OnPlayerSpawn
GreenRag[playerid] = 0 ... etc.
and some command like this : * I used ZCMD and SSCANF *
pawn Код:
CMD:giverag(playerid, params[])
{
new giveplayerid;
if(!IsPlayerAdmin(playerid) return SendClientMessage(playerid, 0xFFFFFFF, "You are not authorized to use that command.");
if(sscanf(params,"u",giveplayerid) return SendClientMessage(playerid, 0xFFFFFFF, "USAGE: /giverag [playerid/partofname]");
GreenRag[giveplayerid]++
if(GreenRag[giveplayerid] == 1) return SendClientMessage(playerid, 0xFFFFFFF, "This player now has a green rag.");
if(GreenRag[giveplayerid] > 1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid,name,sizeof(name);
new string [128];
format(string,sizeof(string),"%s (%i) now has %i rags.", name, giveplayerid, GreenRag[giveplayerid]);
SendClientMessage(playerid, 0xFFFFFFF, string);
return 1;
}
Re: You need some items before you can get a skin -
maramizo - 22.02.2011
Quote:
Originally Posted by jameskmonger
And you're seriously offering to script for others?
|
Lmao I failed I wasn't concentrating /epicfail.
Re: You need some items before you can get a skin -
jameskmonger - 22.02.2011
Yeah, you don't need to forward it XD
Re: You need some items before you can get a skin -
maramizo - 22.02.2011
Quote:
Originally Posted by jameskmonger
Yeah, you don't need to forward it XD
|
Yep lol I wasn't concentrating that's all
Re: You need some items before you can get a skin -
maramizo - 22.02.2011
There you go.
http://pastebin.com/hKf3360i