You need some items before you can get a skin
#1

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!
Reply
#2

And who has the permissions?
Reply
#3

****** 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?
Reply
#4

Yeah, I do. But I'm not sure how to create it though.
Reply
#5

Quote:
Originally Posted by maramizo
Посмотреть сообщение
forward GreenRag = 0
And you're seriously offering to script for others?
Reply
#6

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;
 }
Reply
#7

Quote:
Originally Posted by jameskmonger
Посмотреть сообщение
And you're seriously offering to script for others?
Lmao I failed I wasn't concentrating /epicfail.
Reply
#8

Yeah, you don't need to forward it XD
Reply
#9

Quote:
Originally Posted by jameskmonger
Посмотреть сообщение
Yeah, you don't need to forward it XD
Yep lol I wasn't concentrating that's all
Reply
#10

There you go.
http://pastebin.com/hKf3360i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)