Please Help Me Guys
#3

[/PHP]CMD:www2(playerid,params[])
{
if(sscanf(params, "dd", params[0], params[1] )) return SendClientMessage(playerid, "??????? /www2 [??] [??]");
for(new i = params[0]; i < params[1]; i++)
{
format(stringer, sizeof(stringer), "%i %s", i, GBostName[i]);
CallLocalFunction("cmd_addbotss", "is", playerid, stringer);
}

return 1;
}

native AddServerBot(id, nick[]);
CMD:addbotss(playerid,params[])
{
if(PlayerInfo[playerid][pAlcoInvenxua] < 12) return true;
if(sscanf(params,"ds[24]",params[0],params[1])) return SendClientMessage(playerid,-1,"Write /addbot [ID] [Nick]");
AddServerBot228(params[0],params[1]);
new randoms = random(8);
if(randoms == 0) SetPlayerScore(params[0],1 );
if(randoms > 0) SetPlayerScore(params[0],randoms );
SetPlayerColor(params[0],random(20));
GetPlayerPos(playerid,BotInfos[ params[0] ][Xbot], BotInfos[ params[0] ][Ybot], BotInfos[ params[0] ][Zbot]);
SetPlayerColor(BotInfos[ params[0] ][botCre],random(20));
format(NamePlayer[ params[0] ], 30, "%s",params[1] );
format(PlayerIp[ params[0] ], 30, "%d.%d.%d.%d",random(140),random(76),random(65),ra ndom(148) );
return 1;
}[/PHP]
Reply


Messages In This Thread
Please Help Me Guys - by Fletcher007 - 11.12.2016, 11:02
Re: Please Help Me Guys - by BiosMarcel - 11.12.2016, 11:04
Re: Please Help Me Guys - by Fletcher007 - 11.12.2016, 11:07
Re: Please Help Me Guys - by BiosMarcel - 11.12.2016, 11:12

Forum Jump:


Users browsing this thread: 1 Guest(s)