09.09.2009, 01:39
nvm I got it xD
Don't know what was wrong but it works now xD
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new playername[MAX_PLAYER_NAME];
if (strcmp("/clothes", cmdtext, true, 10) == 0)
{
GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
if(strcmp("Player_Name",playername, true, 5) == 0)
{
SetPlayerSkin(playerid, 186);
return 1;
}
else if(strcmp("Player_Two",playername, true, 10) == 0)
{
SetPlayerSkin(playerid, 187);
return 1;
}
else
{
SendClientMessage(playerid, 0xBFC0C2FF, "Can not use this command");
return 1;
}
}
return 0;
}

