/setage
#4

Код:
	if(strcmp(cmd, "/mддravanus", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "KASUTUS: /mддravanus [vanus]");
				return 1;
			}
			new playa;
			new age;
			playa = ReturnUser(tmp);
			tmp = strtok(cmdtext, idx);
			age = strval(tmp);
			if(IsPlayerConnected(playa))
			{
				if(playa != INVALID_PLAYER_ID)
				{
					PlayerInfo[playa][pAge] = age;
					GetPlayerName(playa, giveplayer, sizeof(giveplayer));
					GetPlayerName(playerid, sendername, sizeof(sendername));
					format(string, 256, "SERVER: Sa oled nььd %d vanus!", age);
					SendClientMessage(COLOR_YELLOW,string,1);
				}
			}
		}
		return 1;
	}

Mддravanus = Setage (Estonian - English)

How do it, like:

/mддravanus 18

not /mддravanus [id] 18

(id/playername) need to remove,
Thanks

Reply


Messages In This Thread
/setage - by Typhome - 17.08.2009, 14:33
Re: /setage - by brett7 - 17.08.2009, 14:38
Re: /setage - by Typhome - 17.08.2009, 14:39
Re: /setage - by Typhome - 17.08.2009, 15:17
Re: /setage - by (.Aztec); - 17.08.2009, 15:28
Re: /setage - by Typhome - 17.08.2009, 15:31
Re: /setage - by Typhome - 17.08.2009, 16:23
Re: /setage - by (.Aztec); - 17.08.2009, 16:25
Re: /setage - by Typhome - 17.08.2009, 16:27
Re: /setage - by Karlip - 17.08.2009, 16:30

Forum Jump:


Users browsing this thread: 3 Guest(s)