All pastes #939453 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-12 09:19 UTC
rendered paste body
/////////////////////////////////////
 	}
 	if(strcmp(cmd,"/showorigin",true)==0)
    {
        if(IsPlayerConnected(playerid))
	    {
	        tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /showorigin [playerid/PartOfName]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if(IsPlayerConnected(giveplayerid))
			{
				if(giveplayerid != INVALID_PLAYER_ID)
				{
				    if (ProxDetectorS(8.0, playerid, giveplayerid))
					{
					    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Show Passport to yourself!"); return 1; }
					    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						SendClientMessage(giveplayerid, TEAM_BLUE_COLOR,"______-=Passport=-_______");
						format(string, sizeof(string), "From:   %s",PlayerInfo[playerid][pOrigin]);
						SendClientMessage(giveplayerid, COLOR_YELLOW2, string);
						SendClientMessage(giveplayerid, TEAM_BLUE_COLOR,"_________________________");
						format(string, sizeof(string), "* %s has shown his origin to you.", sendername);
						SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
						format(string, sizeof(string), "* You have shown your origin to %s.", giveplayer);
						SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   That player is not near you !");
					    return 1;
					}
				}
			}
	        else
	        {
	            SendClientMessage(playerid, COLOR_GREY, "   That player is Offline !");
	            return 1;
	        }
		}
	    return 1;