Range of this cmd
#8

Quote:
Originally Posted by Abagail
Посмотреть сообщение
You'd have to save their setting using a variable. For example,

pawn Код:
CMD:setwdistance(playerid, params[])
{
    if(sscanf(params, "f", distance)) return SendClientMessage(playerid, -1, "USAGE: /setwdistance [Float: distance]");
    if(distance >= MAX_DISTANCE) return SendClientMessage(playerid, -1, "Distance too high!");
    Distance[playerid] = distance;
    new string[64];
    format(string, sizeof(string), "Whisper distance set to %f.", distance);
    SendClientMessage(playerid, -1, string);
    return 1;
}
There it should be new MAX_DISTANCE[MAX_PLAYERS] ?
Reply


Messages In This Thread
Range of this cmd - by Bondage - 30.10.2014, 19:09
Re: Range of this cmd - by nemesis- - 30.10.2014, 19:17
Re: Range of this cmd - by Glossy42O - 30.10.2014, 19:19
Re: Range of this cmd - by Bondage - 30.10.2014, 21:47
Re: Range of this cmd - by mkmk - 30.10.2014, 22:38
Re: Range of this cmd - by BornHuman - 30.10.2014, 23:27
Re: Range of this cmd - by Abagail - 30.10.2014, 23:43
Re: Range of this cmd - by Bondage - 31.10.2014, 07:04
Re: Range of this cmd - by DanishHaq - 31.10.2014, 07:13

Forum Jump:


Users browsing this thread: 6 Guest(s)