21.11.2014, 00:28
if(strcmp(cmd, "/setskin", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Foloseste{FFFFFF}: /setskin [playerid/PartOfName] [skin id]");
return 1;
}
new playa;
new health;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
new name[20];
new victim[20];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(playa, victim, sizeof(victim));
PlayerInfo[playa][pModel] = health;
PlayerInfo[playa][pChar] = health;
SetPlayerSkin(playa, PlayerInfo[playa][pChar]);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{FF0000}[Server-In-Lucru RPG]: {FFFFFF}Nu esti autorizat sa folosesti aceasta Comanda.");
}
}
return 1;
}
hello, how can I do this command to use it on you, not on the other player , /setskin [id] [skin id] i want only to use /setskin [skin id] and give me that skin only me not for other players like /setskin marian 29
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}Foloseste{FFFFFF}: /setskin [playerid/PartOfName] [skin id]");
return 1;
}
new playa;
new health;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
health = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
new name[20];
new victim[20];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(playa, victim, sizeof(victim));
PlayerInfo[playa][pModel] = health;
PlayerInfo[playa][pChar] = health;
SetPlayerSkin(playa, PlayerInfo[playa][pChar]);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "{FF0000}[Server-In-Lucru RPG]: {FFFFFF}Nu esti autorizat sa folosesti aceasta Comanda.");
}
}
return 1;
}
hello, how can I do this command to use it on you, not on the other player , /setskin [id] [skin id] i want only to use /setskin [skin id] and give me that skin only me not for other players like /setskin marian 29