local username done - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: local username done (
/showthread.php?tid=393768)
local username done -
ThePhill97 - 19.11.2012
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?
Re: local username done -
park4bmx - 19.11.2012
you want to say that the player has change their skin
Example
"player: ThePhill has changed their skin"
?
Respuesta: local username done -
ThePhenix - 19.11.2012
PHP код:
new string[250];
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name,sizeof(Name);
format(string,sizeof(string),"Player %s has changed his skin",Name);
SendClientMessageToAll(COLOR_BLUE, string);
Re: local username done -
ThePhill97 - 19.11.2012
Yeah

@Phenix what do I do with them?
Respuesta: local username done -
ThePhenix - 19.11.2012
Put it on your command.
Re: local username done -
ThePhill97 - 19.11.2012
@Phenix
Can you place it in there for me? I dont know where to place it..
Thanks.
Re: local username done -
park4bmx - 19.11.2012
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;
}