Need one commands !
#1

- Can somebody make me a one commands it. When we type : /nude the skin will changes to skin 252 and type again /nude the skin will return like past ! Thanks
Reply
#2

Quote:
Originally Posted by DuongNghia
Посмотреть сообщение
- Can somebody make me a one commands it. When we type : /nude the skin will changes to skin 252 and type again /nude the skin will return like past ! Thanks
pawn Код:
//global variables;

isNude[MAX_PLAYERS] = 0;
returnSkin;

CMD:nude(playerid,params[])
{
 if(isNude[playerid] == 0)
 {
    returnSkin = GetPlayerSkin(playerid);
    SetPlayerSkin(playerid, 252);
    isNude[playerid] = 1;
 }
 else
 {
    SetPlayerSkin(playerid,returnSkin);
   isNude[playerid] = 0;
  }
  return 1;
}
Reply
#3

Quote:
Originally Posted by Galletziz
Посмотреть сообщение
pawn Код:
//global variables;

isNude[MAX_PLAYERS] = 0;
returnSkin;

CMD:nude(playerid,params[])
{
 if(isNude[playerid] == 0)
 {
    returnSkin = GetPlayerSkin(playerid);
    SetPlayerSkin(playerid, 252);
    isNude[playerid] = 1;
 }
 else
 {
    SetPlayerSkin(playerid,returnSkin);
   isNude[playerid] = 0;
  }
  return 1;
}
What is
Код HTML:
//global variables;
and can you make me when we type /nude, the server will run command /me put down the .... and type /nude again server will run the command it /me put in the ... ?
Reply
#4

What do you think ?!
I can't do it for you, I'm tired of people like you, that want nothing more than script ready, as did everyone do if you're really interested to scripting, else downloaded a GM and solve your problems in a few clicks.
Reply
#5

Refer to pawn-lang.pdf (****** it) if you want to know about global variable or just atleast learn to use the search button or the damn ******.
Reply
#6

Quote:
Originally Posted by Galletziz
Посмотреть сообщение
What do you think ?!
I can't do it for you, I'm tired of people like you, that want nothing more than script ready, as did everyone do if you're really interested to scripting, else downloaded a GM and solve your problems in a few clicks.
- I'm realy stupid in scripting can you do it for me. Please, just one more time
Reply
#7

Quote:
Originally Posted by iZN
Посмотреть сообщение
Refer to pawn-lang.pdf (****** it) if you want to know about global variable or just atleast learn to use the search button or the damn ******.
I would give you + rep just for what you have written.

Quote:
Originally Posted by DuongNghia
Посмотреть сообщение
- I'm realy stupid in scripting can you do it for me. Please, just one more time
Quote:
Originally Posted by Galletziz
What do you think ?!
I can't do it for you, I'm tired of people like you, that want nothing more than script ready, as did everyone do if you're really interested to scripting, else downloaded a GM and solve your problems in a few clicks.
Reply
#8

Код:
CMD:nude(playerid,params[])
{
new megastr[1028];
format(str1, sizeof(str1), "Your skin was %i",GetPlayerSkin(playerid));
SendClientMessage(playerid,-1,str1);
SetPlayerSkin(playerid,252);
return 1;
}
You can use /skin command to rechange the skin.
Код:
CMD:skin(playerid, params[]) // Creating the /skin command.
{
    new skinid;
    // If you want make this command only available for Rcon Admins, then remove // characters below this.
    //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You aren't allowed to use this command.");
    if(sscanf(params, "d", skinid)) // d or i = integer, s = string and f = float! As you know skinid is an integer and i defined 'd'
        return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /skin (skinid)"); // Player has used the command without params, then we send him a message.

    // Now the variable 'skinid' contains the value that player has gave as params.
    // Example /skin 294 and the variable contains now the value '294'

    if(skinid > 299 || skinid < 0) // There are only from 0 - 299 skin id's and it should send a warning message
        return SendClientMessage(playerid, 0xFF0000FF, "Invalid Skin ID!");

    // Now everything seems okay and we change his skin!
    SetPlayerSkin(playerid, skinid); // As you know the 'skinid' contains the value of player's given params.
    return 1; // Of course we need return a value.
}
Reply
#9

Quote:
Originally Posted by Maro06
Посмотреть сообщение
Код:
CMD:nude(playerid,params[])
{
new megastr[1028];
format(str1, sizeof(str1), "Your skin was %i",GetPlayerSkin(playerid));
SendClientMessage(playerid,-1,str1);
SetPlayerSkin(playerid,252);
return 1;
}
You can use /skin command to rechange the skin.
Код:
CMD:skin(playerid, params[]) // Creating the /skin command.
{
    new skinid;
    // If you want make this command only available for Rcon Admins, then remove // characters below this.
    //if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You aren't allowed to use this command.");
    if(sscanf(params, "d", skinid)) // d or i = integer, s = string and f = float! As you know skinid is an integer and i defined 'd'
        return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /skin (skinid)"); // Player has used the command without params, then we send him a message.

    // Now the variable 'skinid' contains the value that player has gave as params.
    // Example /skin 294 and the variable contains now the value '294'

    if(skinid > 299 || skinid < 0) // There are only from 0 - 299 skin id's and it should send a warning message
        return SendClientMessage(playerid, 0xFF0000FF, "Invalid Skin ID!");

    // Now everything seems okay and we change his skin!
    SetPlayerSkin(playerid, skinid); // As you know the 'skinid' contains the value of player's given params.
    return 1; // Of course we need return a value.
}
Thanks
Reply
#10

Quote:
Originally Posted by DuongNghia
Посмотреть сообщение
Thanks
Dont forget to +REP ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)