local username done
#1

I have a command
pawn Код:
//skin 6
        if(strcmp(cmdtext, "/setskin 6", true) == 0)
    {
        SetPlayerSkin(playerid, 6);
        GivePlayerMoney(playerid, -10);
        return 1;
    }
but what can I do to make it say to everyone around %username% has put on some fresh clothes?
Reply
#2

you want to say that the player has change their skin
Example
"player: ThePhill has changed their skin"
?
Reply
#3

PHP код:
new string[250];
new 
Name[MAX_PLAYER_NAME];
GetPlayerName(playeridName,sizeof(Name);
format(string,sizeof(string),"Player %s has changed his skin",Name);
SendClientMessageToAll(COLOR_BLUEstring); 
Reply
#4

Yeah
@Phenix what do I do with them?
Reply
#5

Put it on your command.
Reply
#6

@Phenix
Can you place it in there for me? I dont know where to place it..
Thanks.
Reply
#7

just do this
pawn Код:
if(strcmp(cmdtext, "/setskin 6", true) == 0)
    {
        SetPlayerSkin(playerid, 6);
        GivePlayerMoney(playerid, -10);
        //
        new str[250],Name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, Name,sizeof(Name);

        format(str,sizeof(str),"Player %s has changed their skin to SkinId: 6",Name);
        SendClientMessageToAll(-1, str);
        return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)