/SETWORLD
#6

Код:
if(strcmp(cmd, "/setworld", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setvw [playerid/PartOfName] [virworldid]");
				return 1;
			}
			new playa;
			playa = ReturnUser(tmp);
			new virid;
			tmp = strtok(cmdtext, idx);
			virid = strval(tmp);
			if (PlayerInfo[playerid][pAdmin] >= 1337)
			{
			    if(IsPlayerConnected(playa))
			    {
			        if(playa != INVALID_PLAYER_ID)
			        {
			    		GetPlayerName(playa, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						SetPlayerVirtualWorld(playa, virid);
						format(string, sizeof(string), "   You have set %s virtual world to %d.", giveplayer, virid);
						SendClientMessage(playerid, COLOR_GRAD1, string);
						format(string, sizeof(string), "   %s have set your virtual world to %d.", sendername, virid);
						SendClientMessage(playa, COLOR_GRAD1, string);
					}
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
			}
		}
		return 1;
	}
Reply


Messages In This Thread
/SETWORLD - by boyan96 - 29.08.2011, 14:52
Re: /SETWORLD - by [MWR]Blood - 29.08.2011, 14:55
Re: /SETWORLD - by Tigerkiller - 29.08.2011, 14:56
Re: /SETWORLD - by Luis- - 29.08.2011, 15:27
Re: /SETWORLD - by boyan96 - 29.08.2011, 15:34
Re: /SETWORLD - by dreamworld - 29.08.2011, 15:50
Re: /SETWORLD - by boyan96 - 29.08.2011, 16:41
Re: /SETWORLD - by =WoR=Varth - 29.08.2011, 16:45
Re: /SETWORLD - by dreamworld - 21.09.2011, 20:48

Forum Jump:


Users browsing this thread: 2 Guest(s)