Jump to content
  • 0

Question

Posted

Problema intalnita (descriere): nu merge sa setez skinul la raza de 2 metri se seteaza la tot serverul am incercat sa-l fac dar nu reusesc
Ero(area / rile) / warning-(ul / urile):nu sunt
Liniile de cod / sursa / script-ul(obligatoriu):

CMD:askin(playerid, params[])
{
new Float:skinid,range;
new skin;
 if(sscanf(params, "df", skin, range))
 
    if(sscanf(params, "f", skinid )) return SendClientMessage(playerid, -1, "Syntax: /askin <skinid> <Distanta 5.0 > ");
    if(playerVariables[playerid][pAdminLevel] >= 2)
    {
            if(skinid < 0 || skinid > 311)
    return SendClientMessage(playerid, 0xFF000000, "{ff0000}=ERROR=: {ffffff}Choose a skin between 0 to 311!");


  new Float: Pos[3];
        GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
        format(szMessage, sizeof(szMessage), "{00CC00}Admin %s A schimbat skinul tuturor din raza de %d.", playerVariables[playerid][pNormalName]);
        foreach(Player, i)
        {
           if(ProxDetectorS(range, playerid, i))
            {
                SetPlayerSkin(i, skinid);
  GetPlayerSkin(i);
                SendClientMessage(i, -1, szMessage);
            }
        }
    }
    return 1;
}


Imagini / Video (optional): nu am am-i facut
Ati incercat sa rezolvati singur?: da

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

5 answers to this question

Recommended Posts

  • 0
Posted

Incearca asa:

CMD:askin(playerid, params[])
{
	new Float:range, skin;
	if(sscanf(params, "df", skinid, range)) 
			return SendClientMessage(playerid, -1, "Syntax: /askin <skinid> <Distanta 5.0 > ");
			
	if(playerVariables[playerid][pAdminLevel] < 2)
			return SendClientMessage(playerid, -1, "You don't use this command!");
			
	if(skinid < 0 || skinid > 311)
	return SendClientMessage(playerid, 0xFF000000, "{ff0000}=ERROR=: {ffffff}Choose a skin between 0 to 311!");


	new Float: PosX, Float:PosY, Float:PosZ;
	GetPlayerPos(playerid, PosX, PosY, PosZ);
	format(szMessage, sizeof(szMessage), "{00CC00}Admin %s A schimbat skinul tuturor din raza de %d.", playerVariables[playerid][pNormalName], range);
	foreach(Player, i)
	{
		if(ProxDetectorS(range, playerid, i))
		{
			SetPlayerSkin(i, skinid);
			GetPlayerSkin(i);
			SendClientMessage(i, -1, szMessage);
		}
	}
	return 1;
} 

 

  • 0
Posted

multumesc!

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted

Pot da T/C??

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 0
Posted

mai imi da eroarea asta cand dau sa pun id de skin in samp

=ERROR=: Choose a skin between 0 to 311

FiveGame  Lands

Pawno Developer, Mapping , Scripter

Since 2016

  • 0
Posted (edited)

Pai id.ul skin.ului nu tre' să fie mai mic de 0 și mai mare de 311.

Edited by DaEdRiC-FoX

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.